Skip to content

Instantly share code, notes, and snippets.

@zilongshanren
Created October 31, 2016 06:06
Show Gist options
  • Save zilongshanren/3443507d358e1afd737e0469487ab47d to your computer and use it in GitHub Desktop.
Save zilongshanren/3443507d358e1afd737e0469487ab47d to your computer and use it in GitHub Desktop.
Spidermonkey 45 compile patch
diff --git a/js/src/moz.build b/js/src/moz.build
index 591d7a6..5cb2cc5 100644
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -66,7 +66,12 @@ CONFIGURE_SUBST_FILES += [
'js.pc',
]
-if not CONFIG['JS_STANDALONE']:
+if CONFIG['JS_STANDALONE']:
+ DEFINES['IMPL_MFBT'] = True
+ USE_LIBS += [
+ 'mfbt',
+ ]
+else:
CONFIGURE_SUBST_FILES += [
'../../config/autoconf-js.mk',
'../../config/emptyvars-js.mk',
diff --git a/mfbt/moz.build b/mfbt/moz.build
index a071040..5a11132 100644
--- a/mfbt/moz.build
+++ b/mfbt/moz.build
@@ -118,6 +118,7 @@ DISABLE_STL_WRAPPING = True
# Suppress warnings in third-party LZ4 code.
# TODO: Remove these suppressions after bug 993267 is fixed.
+NO_EXPAND_LIBS = True
if CONFIG['GNU_CXX']:
SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']
@zilongshanren
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment