diff options
author | Andrew Morrow <acm@mongodb.com> | 2017-02-09 18:18:04 -0500 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2017-02-15 18:40:45 -0500 |
commit | 38c0eb538d0fd390c6cb9ce9ae9894153f6e8ef5 (patch) | |
tree | de472ad7aa7163f977b861525af5a852cf33f6f2 /src/third_party | |
parent | 34c00f16a8890775c71c63c860e2086c6bb603aa (diff) | |
download | mongo-38c0eb538d0fd390c6cb9ce9ae9894153f6e8ef5.tar.gz |
SERVER-28004 Add build system support for iOS-related Darwin variants
Use a SCons invocation like the following to attach to the correct SDK
and targeting options.
// macOS native build:
> python buildscripts/scons.py CCFLAGS="-isysroot `xcrun --sdk macosx --show-sdk-path` -mmacosx-version-min=10.10" LINKFLAGS="-Wl,-syslibroot,`xcrun --sdk macosx --show-sdk-path` -mmacosx-version-min=10.10" CC=`xcrun -f --sdk macosx clang` CXX=`xcrun -f --sdk macosx clang++`all
// iOS Cross:
> python buildscripts/scons.py CCFLAGS="-arch arm64 -isysroot `xcrun --sdk iphoneos --show-sdk-path` -miphoneos-version-min=10.2" LINKFLAGS="-arch arm64 -Wl,-syslibroot,`xcrun --sdk iphoneos --show-sdk-path` -miphoneos-version-min=10.2" CC=`xcrun -f --sdk iphoneos clang` CXX=`xcrun -f --sdk iphoneos clang++` TARGET_OS=iOS TARGET_ARCH=aarch64 all
// iOS Simulator Cross:
> python buildscripts/scons.py CCFLAGS="-isysroot `xcrun --sdk iphonesimulator --show-sdk-path` -miphoneos-version-min=10.2" LINKFLAGS="-Wl,-syslibroot,`xcrun --sdk iphonesimulator --show-sdk-path` -miphoneos-version-min=10.2" CC=`xcrun -f --sdk iphonesimulator clang` CXX=`xcrun -f --sdk iphonesimulator clang++` TARGET_OS=iOS-sim all
// tvOS Cross:
> python buildscripts/scons.py CCFLAGS="-arch arm64 -isysroot `xcrun --sdk appletvos --show-sdk-path` -mtvos-version-min=10.1" LINKFLAGS="-arch arm64 -Wl,-syslibroot,`xcrun --sdk appletvos --show-sdk-path` -mtvos-version-min=10.1" CC=`xcrun -f --sdk appletvos clang` CXX=`xcrun -f --sdk appletvos clang++` TARGET_OS=tvOS TARGET_ARCH=aarch64 all
// tvOS Simulator Cross:
> python buildscripts/scons.py CCFLAGS="-isysroot `xcrun --sdk appletvsimulator --show-sdk-path` -mtvos-version-min=10.1" LINKFLAGS="-Wl,-syslibroot,`xcrun --sdk appletvsimulator --show-sdk-path` -mtvos-version-min=10.1" CC=`xcrun -f --sdk appletvsimulator clang` CXX=`xcrun -f --sdk appletvsimulator clang++` TARGET_OS=tvOS-sim
To run the resulting binaries under the simulator, boot a particular
target machine with 'xcrun simctl':
> xcrun simctl boot 'Apple TV 1080p'
Find the ID of the instance that was booted:
> xcrun simctl list | grep 'Apple TV 1080p'
And then spawn the intended binary inside the simulator with that ID:
> xcrun simctl spawn CEEC6346-6D21-4092-A091-E5A3862A357F build/opt/mongo/mongod --dbpath=tmp
Diffstat (limited to 'src/third_party')
-rwxr-xr-x | src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c | 1 | ||||
-rw-r--r-- | src/third_party/IntelRDFPMathLib20U1/SConscript | 3 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src0.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src0.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src1.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src1.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src10.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src10.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src11.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src11.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src12.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src12.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src13.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src13.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src14.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src14.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src15.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src15.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src16.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src16.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src17.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src17.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src18.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src18.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src19.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src19.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src2.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src2.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src20.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src20.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src21.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src21.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src22.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src22.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src23.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src23.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src24.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src24.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src25.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src25.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src26.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src26.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src27.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src27.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src28.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src28.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src29.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src29.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src3.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src3.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src30.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src30.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src31.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src31.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src32.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src32.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src33.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src33.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src34.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src34.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src35.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src35.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src36.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src36.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src4.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src4.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src5.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src5.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src6.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src6.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src7.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src7.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src8.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src8.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src9.cpp (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src9.cpp) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/build/js-confdefs.h (renamed from src/third_party/mozjs-45/platform/x86_64/osx/build/js-confdefs.h) | 0 | ||||
-rw-r--r-- | src/third_party/mozjs-45/platform/x86_64/macOS/include/js-config.h (renamed from src/third_party/mozjs-45/platform/x86_64/osx/include/js-config.h) | 0 | ||||
-rw-r--r-- | src/third_party/s2/base/port.h | 5 | ||||
-rw-r--r-- | src/third_party/s2/s1angle.cc | 2 | ||||
-rw-r--r-- | src/third_party/s2/s1interval.cc | 8 | ||||
-rw-r--r-- | src/third_party/s2/s2cap.cc | 4 | ||||
-rw-r--r-- | src/third_party/s2/s2cellid_test.cc | 4 | ||||
-rw-r--r-- | src/third_party/s2/s2latlng.cc | 4 | ||||
-rw-r--r-- | src/third_party/s2/s2latlngrect.cc | 2 | ||||
-rw-r--r-- | src/third_party/s2/s2latlngrect_test.cc | 2 | ||||
-rwxr-xr-x | src/third_party/s2/util/math/exactfloat/exactfloat.h | 2 | ||||
-rw-r--r-- | src/third_party/wiredtiger/SConscript | 3 |
51 files changed, 20 insertions, 20 deletions
diff --git a/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c b/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c index 30ff38b21e5..1b045566e4b 100755 --- a/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c +++ b/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c @@ -131,6 +131,7 @@ #if !defined(DPML_SIGNAL) && !defined(MINIMAL_SILENT_MODE_EXCEPTION_HANDLER) && \
!defined(wnt)
+# include <signal.h>
# include <sys/signal.h>
# define DPML_SIGNAL(p) raise(SIGFPE)
diff --git a/src/third_party/IntelRDFPMathLib20U1/SConscript b/src/third_party/IntelRDFPMathLib20U1/SConscript index ef5ae63e90e..61b3d8f92c6 100644 --- a/src/third_party/IntelRDFPMathLib20U1/SConscript +++ b/src/third_party/IntelRDFPMathLib20U1/SConscript @@ -275,7 +275,7 @@ def float53_object(target, source, extra_defines=None): return obj_env.LibraryObject(target, source) # Set OS Defines -if env.TargetOSIs('osx'): +if env.TargetOSIs('darwin'): cpp_defines['LINUX'] = '1' cpp_defines['mach'] = '1' extra_objects = [ @@ -339,4 +339,3 @@ env.Library( source=source_files, LIBS=libs, ) - diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src0.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src0.cpp index 4977ac22e2b..4977ac22e2b 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src0.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src0.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src1.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src1.cpp index 357bfee0fe4..357bfee0fe4 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src1.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src1.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src10.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src10.cpp index dfb25f2f4fc..dfb25f2f4fc 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src10.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src10.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src11.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src11.cpp index 4bcd8b7137a..4bcd8b7137a 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src11.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src11.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src12.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src12.cpp index efdac432b22..efdac432b22 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src12.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src12.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src13.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src13.cpp index d056c598a3c..d056c598a3c 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src13.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src13.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src14.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src14.cpp index 30f023f0799..30f023f0799 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src14.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src14.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src15.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src15.cpp index b45eb4a1828..b45eb4a1828 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src15.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src15.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src16.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src16.cpp index da4ec4f94ff..da4ec4f94ff 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src16.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src16.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src17.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src17.cpp index 5b2fc0ad522..5b2fc0ad522 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src17.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src17.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src18.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src18.cpp index 3ec2977897d..3ec2977897d 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src18.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src18.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src19.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src19.cpp index d82016152f0..d82016152f0 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src19.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src19.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src2.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src2.cpp index 7840a1ef2ac..7840a1ef2ac 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src2.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src2.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src20.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src20.cpp index 50193166401..50193166401 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src20.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src20.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src21.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src21.cpp index 2b5f0d0b7d9..2b5f0d0b7d9 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src21.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src21.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src22.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src22.cpp index 3c46c888e30..3c46c888e30 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src22.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src22.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src23.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src23.cpp index d507b4488f0..d507b4488f0 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src23.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src23.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src24.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src24.cpp index b823d8f06f7..b823d8f06f7 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src24.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src24.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src25.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src25.cpp index 19499050779..19499050779 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src25.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src25.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src26.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src26.cpp index 981462b444a..981462b444a 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src26.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src26.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src27.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src27.cpp index d2f11b90332..d2f11b90332 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src27.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src27.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src28.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src28.cpp index 6ca82175450..6ca82175450 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src28.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src28.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src29.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src29.cpp index 530bf83df53..530bf83df53 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src29.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src29.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src3.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src3.cpp index 7012a578ee9..7012a578ee9 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src3.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src3.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src30.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src30.cpp index 41685b5b247..41685b5b247 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src30.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src30.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src31.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src31.cpp index cac686f6638..cac686f6638 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src31.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src31.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src32.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src32.cpp index 54a391f2a55..54a391f2a55 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src32.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src32.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src33.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src33.cpp index e17b0aefb86..e17b0aefb86 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src33.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src33.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src34.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src34.cpp index 10e2ce73fa1..10e2ce73fa1 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src34.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src34.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src35.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src35.cpp index a40fa7f1b32..a40fa7f1b32 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src35.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src35.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src36.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src36.cpp index 643d64facab..643d64facab 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src36.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src36.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src4.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src4.cpp index 377ed745a83..377ed745a83 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src4.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src4.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src5.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src5.cpp index 1b3fd6ebe20..1b3fd6ebe20 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src5.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src5.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src6.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src6.cpp index 9ecdbf94ad4..9ecdbf94ad4 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src6.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src6.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src7.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src7.cpp index 24077fbdbfe..24077fbdbfe 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src7.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src7.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src8.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src8.cpp index bc5c13d1a11..bc5c13d1a11 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src8.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src8.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src9.cpp b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src9.cpp index a003cf6d56d..a003cf6d56d 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/Unified_cpp_js_src9.cpp +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/Unified_cpp_js_src9.cpp diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/build/js-confdefs.h b/src/third_party/mozjs-45/platform/x86_64/macOS/build/js-confdefs.h index c4ff9c6d80b..c4ff9c6d80b 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/build/js-confdefs.h +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/build/js-confdefs.h diff --git a/src/third_party/mozjs-45/platform/x86_64/osx/include/js-config.h b/src/third_party/mozjs-45/platform/x86_64/macOS/include/js-config.h index e4175f7d74d..e4175f7d74d 100644 --- a/src/third_party/mozjs-45/platform/x86_64/osx/include/js-config.h +++ b/src/third_party/mozjs-45/platform/x86_64/macOS/include/js-config.h diff --git a/src/third_party/s2/base/port.h b/src/third_party/s2/base/port.h index 25d3d2fcf3c..82e8a7dee56 100644 --- a/src/third_party/s2/base/port.h +++ b/src/third_party/s2/base/port.h @@ -685,8 +685,9 @@ extern inline void prefetch(const char *x) {} #endif // !HAVE_ATTRIBUTE_SECTION -#if defined __sun || defined _WIN32 -inline double drem(double x, double y) { +// MongoDB modification: All of our target platforms define the C99 remainder function. +#if 0 +inline double remainder(double x, double y) { double quot = x/y; int iquot; // If quot is slightly less than 0.5, we round down explicitly. We have to diff --git a/src/third_party/s2/s1angle.cc b/src/third_party/s2/s1angle.cc index e299344fb59..650ce1f709c 100644 --- a/src/third_party/s2/s1angle.cc +++ b/src/third_party/s2/s1angle.cc @@ -25,7 +25,7 @@ S1Angle S1Angle::Normalized() const { } void S1Angle::Normalize() { - radians_ = drem(radians_, 2.0 * M_PI); + radians_ = remainder(radians_, 2.0 * M_PI); if (radians_ <= -M_PI) radians_ = M_PI; } diff --git a/src/third_party/s2/s1interval.cc b/src/third_party/s2/s1interval.cc index bf676e96482..33af6a00f5b 100644 --- a/src/third_party/s2/s1interval.cc +++ b/src/third_party/s2/s1interval.cc @@ -110,7 +110,7 @@ bool S1Interval::InteriorIntersects(S1Interval const& y) const { inline static double PositiveDistance(double a, double b) { // Compute the distance from "a" to "b" in the range [0, 2*Pi). - // This is equivalent to (drem(b - a - M_PI, 2 * M_PI) + M_PI), + // This is equivalent to (remainder(b - a - M_PI, 2 * M_PI) + M_PI), // except that it is more numerically stable (it does not lose // precision for very small positive distances). double d = b - a; @@ -180,7 +180,7 @@ S1Interval S1Interval::Expanded(double radius) const { // for a 1-bit rounding error when computing each endpoint. if (GetLength() + 2 * radius >= 2 * M_PI - 1e-15) return Full(); - S1Interval result(drem(lo() - radius, 2*M_PI), drem(hi() + radius, 2*M_PI)); + S1Interval result(remainder(lo() - radius, 2*M_PI), remainder(hi() + radius, 2*M_PI)); if (result.lo() <= -M_PI) result.set_lo(M_PI); return result; } @@ -245,6 +245,6 @@ S1Interval S1Interval::Intersection(S1Interval const& y) const { bool S1Interval::ApproxEquals(S1Interval const& y, double max_error) const { if (is_empty()) return y.GetLength() <= max_error; if (y.is_empty()) return GetLength() <= max_error; - return (fabs(drem(y.lo() - lo(), 2 * M_PI)) + - fabs(drem(y.hi() - hi(), 2 * M_PI))) <= max_error; + return (fabs(remainder(y.lo() - lo(), 2 * M_PI)) + + fabs(remainder(y.hi() - hi(), 2 * M_PI))) <= max_error; } diff --git a/src/third_party/s2/s2cap.cc b/src/third_party/s2/s2cap.cc index edfde6e20de..0b44cdb8d5a 100644 --- a/src/third_party/s2/s2cap.cc +++ b/src/third_party/s2/s2cap.cc @@ -153,8 +153,8 @@ S2LatLngRect S2Cap::GetRectBound() const { double sin_c = cos(axis_ll.lat().radians()); if (sin_a <= sin_c) { double angle_A = asin(sin_a / sin_c); - lng[0] = drem(axis_ll.lng().radians() - angle_A, 2 * M_PI); - lng[1] = drem(axis_ll.lng().radians() + angle_A, 2 * M_PI); + lng[0] = remainder(axis_ll.lng().radians() - angle_A, 2 * M_PI); + lng[1] = remainder(axis_ll.lng().radians() + angle_A, 2 * M_PI); } } return S2LatLngRect(R1Interval(lat[0], lat[1]), diff --git a/src/third_party/s2/s2cellid_test.cc b/src/third_party/s2/s2cellid_test.cc index cd0695f904d..9f82e84035c 100644 --- a/src/third_party/s2/s2cellid_test.cc +++ b/src/third_party/s2/s2cellid_test.cc @@ -237,8 +237,8 @@ TEST(S2CellId, Continuity) { double u, v; S2::XYZtoFaceUV(id.ToPointRaw(), &u, &v); static double const kCellSize = 1.0 / (1 << kMaxWalkLevel); - EXPECT_NEAR(drem(S2::UVtoST(u), 0.5 * kCellSize), 0.0, 1e-15); - EXPECT_NEAR(drem(S2::UVtoST(v), 0.5 * kCellSize), 0.0, 1e-15); + EXPECT_NEAR(remainder(S2::UVtoST(u), 0.5 * kCellSize), 0.0, 1e-15); + EXPECT_NEAR(remainder(S2::UVtoST(v), 0.5 * kCellSize), 0.0, 1e-15); } } diff --git a/src/third_party/s2/s2latlng.cc b/src/third_party/s2/s2latlng.cc index d0fab58668e..dbe3748a33b 100644 --- a/src/third_party/s2/s2latlng.cc +++ b/src/third_party/s2/s2latlng.cc @@ -5,10 +5,10 @@ #include "s2latlng.h" S2LatLng S2LatLng::Normalized() const { - // drem(x, 2 * M_PI) reduces its argument to the range [-M_PI, M_PI] + // remainder(x, 2 * M_PI) reduces its argument to the range [-M_PI, M_PI] // inclusive, which is what we want here. return S2LatLng(max(-M_PI_2, min(M_PI_2, lat().radians())), - drem(lng().radians(), 2 * M_PI)); + remainder(lng().radians(), 2 * M_PI)); } S2Point S2LatLng::ToPoint() const { diff --git a/src/third_party/s2/s2latlngrect.cc b/src/third_party/s2/s2latlngrect.cc index 26e34bb14a8..b0c87080eab 100644 --- a/src/third_party/s2/s2latlngrect.cc +++ b/src/third_party/s2/s2latlngrect.cc @@ -171,7 +171,7 @@ S2Cap S2LatLngRect::GetCapBound() const { // rectangles that are larger than 180 degrees, we punt and always return a // bounding cap centered at one of the two poles. double lng_span = lng_.hi() - lng_.lo(); - if (drem(lng_span, 2 * M_PI) >= 0) { + if (remainder(lng_span, 2 * M_PI) >= 0) { if (lng_span < 2 * M_PI) { S2Cap mid_cap = S2Cap::FromAxisAngle(GetCenter().ToPoint(), S1Angle::Radians(0)); diff --git a/src/third_party/s2/s2latlngrect_test.cc b/src/third_party/s2/s2latlngrect_test.cc index 33408944a00..f64981cf694 100644 --- a/src/third_party/s2/s2latlngrect_test.cc +++ b/src/third_party/s2/s2latlngrect_test.cc @@ -99,7 +99,7 @@ TEST(S2LatLngRect, GetVertex) { double lat = M_PI_4 * (i - 2); double lng = M_PI_2 * (i - 2) + 0.2; S2LatLngRect r(R1Interval(lat, lat + M_PI_4), - S1Interval(drem(lng, 2*M_PI), drem(lng + M_PI_2, 2*M_PI))); + S1Interval(remainder(lng, 2*M_PI), remainder(lng + M_PI_2, 2*M_PI))); for (int k = 0; k < 4; ++k) { EXPECT_TRUE(S2::SimpleCCW(r.GetVertex((k - 1) & 3).ToPoint(), r.GetVertex(k).ToPoint(), diff --git a/src/third_party/s2/util/math/exactfloat/exactfloat.h b/src/third_party/s2/util/math/exactfloat/exactfloat.h index b6af9a89489..5e9044bcc72 100755 --- a/src/third_party/s2/util/math/exactfloat/exactfloat.h +++ b/src/third_party/s2/util/math/exactfloat/exactfloat.h @@ -436,7 +436,7 @@ class ExactFloat { } // A synonym for remainder(). - friend ExactFloat drem(const ExactFloat& a, const ExactFloat& b) { + friend ExactFloat remainder(const ExactFloat& a, const ExactFloat& b) { return remainder(a, b); } diff --git a/src/third_party/wiredtiger/SConscript b/src/third_party/wiredtiger/SConscript index 2d371526c55..be506d1eb38 100644 --- a/src/third_party/wiredtiger/SConscript +++ b/src/third_party/wiredtiger/SConscript @@ -50,7 +50,7 @@ if env.TargetOSIs('windows'): if env['MONGO_ALLOCATOR'] == 'tcmalloc': env.InjectThirdPartyIncludePaths(libraries=['gperftools']) env.Append(CPPDEFINES=['HAVE_LIBTCMALLOC']) -elif env.TargetOSIs('osx'): +elif env.TargetOSIs('darwin'): env.Append(CPPPATH=["build_darwin"]) elif env.TargetOSIs('solaris'): env.Append(CPPPATH=["build_solaris"]) @@ -177,4 +177,3 @@ wtlib = env.Library( ) env.Depends(wtlib, [filelistfile, version_file]) - |