Created
October 31, 2016 06:06
-
-
Save zilongshanren/3443507d358e1afd737e0469487ab47d to your computer and use it in GitHub Desktop.
Spidermonkey 45 compile patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
compile for mac script: https://github.com/zilongshanren/Spidermonkey/blob/master/js/src/build-osx/build.sh