Skip to content

Instantly share code, notes, and snippets.

@froydnj
froydnj / Unified_cpp_dom_promise0.i
Created August 27, 2018 17:22
failing preprocessed C++ file
This file has been truncated, but you can view the full file.
#line 1 "c:/mozilla-central/obj-aarch64-windows-mingw32/dom/promise/Unified_cpp_dom_promise0.cpp"
#line 1 "c:/mozilla-central/obj-aarch64-windows-mingw32/mozilla-config.h"
/* List of defines generated by configure. Included with preprocessor flag,
* -include, to avoid long list of -D defines on the compile command-line.
* Do not edit.
*/
0:27.73 c:\mozilla-central\python\mozbuild\mozbuild\virtualenv.py:384: UserWarning: Hacking environment to allow binary Python extensions to build. You can make this warning go away by installing Visual Studio 2008. You can download the Express Edition installer from http://go.microsoft.com/?linkid=7729279
0:27.74 warnings.warn('Hacking environment to allow binary Python '
0:27.74 Reexecuting in the virtualenv
0:28.59 Creating Python environment
0:28.82 Please use the *system* python to run this script
0:28.82 Installing setuptools, pip, wheel...
0:28.83 Error [Error 5] Access is denied while executing command c:\mozilla-central\o...ch64-windows-mingw32 - setuptools pip wheel
0:28.83 ...Installing setuptools, pip, wheel...done.
0:28.83 Traceback (most recent call last):
0:28.84 File "c:/mozilla-central\third_party\python\virtualenv\virtualenv.py", line 2349, in <module>
diff --git a/python/mozbuild/mozbuild/frontend/gyp_reader.py b/python/mozbuild/mozbuild/frontend/gyp_reader.py
index a7f4f40..e313a73 100644
--- a/python/mozbuild/mozbuild/frontend/gyp_reader.py
+++ b/python/mozbuild/mozbuild/frontend/gyp_reader.py
@@ -249,6 +249,8 @@ def process_gyp_result(gyp_result, gyp_dir_attrs, path, config, output,
for define in defines:
if '=' in define:
name, value = define.split('=', 1)
+ if name == 'NSS_ALLOW_SSLKEYLOGFILE':
+ continue
@froydnj
froydnj / nss.diff
Created March 25, 2019 20:01
nss debug line diff
This file has been truncated, but you can view the full file.
MODULE Linux x86_64 A5FEBE9EC8DC2368C98DD7BD436A1E710 libnss3.so MODULE Linux x86_64 A5FEBE9EC8DC2368C98DD7BD436A1E710 libnss3.so
INFO CODE_ID 9EBEFEA5DCC86823C98DD7BD436A1E71B68479F6 INFO CODE_ID 9EBEFEA5DCC86823C98DD7BD436A1E71B68479F6
FILE 0 /home/froydnj/src/gecko/security/nss/lib/base/arena.c FILE 0 /home/froydnj/src/gecko/security/nss/lib/base/arena.c
FILE 1 /home/froydnj/src/gecko/security/nss/lib/base/error.c FILE 1 /home/froydnj/src/gecko/security/nss/lib/base/error.c
FILE 2 /home/froydnj/src/gecko/security/nss/lib/base/hash.c FILE 2 /home/froydnj/src/gecko/security/nss/lib/base/hash.c
FILE 3 /home/froydnj/src/gecko/security/nss/lib/base/hashops.c FILE 3 /home/froydnj/src/gecko/security/nss/lib/base/hashops.c
FILE 4 /home/froydnj/src/gecko/security/nss/lib/base/item.c FILE 4 /home/froydnj/src/gecko/security/nss/lib/base/item.c
FILE 5 /home/froydnj/src/gecko/security/nss/lib/base/libc.c FILE 5 /home/froydnj/src/gecko/security/nss/lib/base/libc.c
FILE 6 /home/froydnj/src/gecko/s
diff --git a/mfbt/WeakPtr.h b/mfbt/WeakPtr.h
index b33331f..9333745 100644
--- a/mfbt/WeakPtr.h
+++ b/mfbt/WeakPtr.h
@@ -164,7 +164,7 @@ namespace detail {
// This can live beyond the lifetime of the class derived from
// SupportsWeakPtr.
template <class T>
-class WeakReference : public ::mozilla::RefCounted<WeakReference<T> > {
+class WeakReference : public ::mozilla::RefCounted<WeakReference<T>> {
# pahole command for gdb
# Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
Code:
```rust
let compiled = self
.clif_module
.define_function(func_id, &mut clif_context)
.map_err(|source| Error::FunctionDefinition {
symbol: func.name.symbol().to_string(),
source,
})?;
#!/bin/bash
gomacc=/opt/extra/froydnj/goma/client/out/Release/gomacc
compiler=$1
shift
case "$compiler" in
*/clang*)
exec ${gomacc} \
$(realpath --relative-to=$(pwd) ${compiler}) \
diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure
index 7eb043e..58cdf67 100755
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -2031,6 +2031,12 @@ def select_linker(linker, c_compiler, developer_options, enable_gold,
# Check that we are trying to use a supported linker
die('Unsupported linker ' + linker)
+ if target.kernel == 'Darwin' and linker == 'ld64':
+ return namespace(
const pair modulo0_pairs[] = {
{ 1, 12 },
{ 2, 6 },
{ 2, 12 },
{ 3, 4 },
{ 3, 8 },
{ 3, 12 },
{ 4, 3 },
{ 4, 6 },
{ 4, 9 },