summaryrefslogtreecommitdiff
path: root/etc/scons
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-06-07 14:12:23 -0400
committerMathew Robinson <chasinglogic@gmail.com>2019-06-07 14:12:23 -0400
commit7272900e4c2e8aeeb442f7fd82a24573a5e32581 (patch)
tree493c7ed0fd7d4743c835f58e5449082e4c60e778 /etc/scons
parentd14cfb93a7fd33edf679f7fcd68c46b8d2be0b6b (diff)
downloadmongo-7272900e4c2e8aeeb442f7fd82a24573a5e32581.tar.gz
SERVER-41413 Remove clang macosx var files
Diffstat (limited to 'etc/scons')
-rw-r--r--etc/scons/clang_macosx.vars39
-rw-r--r--etc/scons/icecream_clang_macosx.vars2
2 files changed, 0 insertions, 41 deletions
diff --git a/etc/scons/clang_macosx.vars b/etc/scons/clang_macosx.vars
deleted file mode 100644
index c470e1b14e9..00000000000
--- a/etc/scons/clang_macosx.vars
+++ /dev/null
@@ -1,39 +0,0 @@
-# Configures the build to use Toolchain Clang to build with icecream
-# cross compiling for macOS
-
-import re
-import subprocess
-
-CC = "/opt/mongodbtoolchain/v3/bin/clang"
-CXX = "/opt/mongodbtoolchain/v3/bin/clang++"
-
-sdk_path = subprocess.check_output(["xcrun", "--sdk", "macosx", "--show-sdk-path"]).decode("utf-8").strip()
-toolchain_root = "{}/Toolchains/XcodeDefault.xctoolchain".format(
- subprocess.check_output(["xcode-select", "-print-path"]).decode("utf-8").strip()
-)
-
-xcode_clang_path = subprocess.check_output(["xcrun", "-f", "--sdk", "macosx", "clang++"]).decode("utf-8")
-xcode_clang_version = re.compile(r"[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}").search(
- subprocess
- .check_output([xcode_clang_path, "--version"])
- .decode("utf-8")
- .split("\n")[0]
-).group(0)
-
-
-common_flags = [
- "-mmacosx-version-min=10.12",
- "-target darwin16.0.0",
- "-arch x86_64",
-]
-
-CCFLAGS = " ".join([
- f"-isysroot {sdk_path}",
- f"-I{toolchain_root}/usr/lib/{xcode_clang_version}",
- f"-I{toolchain_root}/usr/include/c++/v1",
- f"-I{toolchain_root}/usr/include",
-] + common_flags)
-
-LINKFLAGS = " ".join([
- f"-Wl,-syslibroot,{sdk_path}",
-] + common_flags)
diff --git a/etc/scons/icecream_clang_macosx.vars b/etc/scons/icecream_clang_macosx.vars
deleted file mode 100644
index 9b59a96a11e..00000000000
--- a/etc/scons/icecream_clang_macosx.vars
+++ /dev/null
@@ -1,2 +0,0 @@
-exec(open('etc/scons/clang_macosx.vars', "rb").read())
-exec(open('etc/scons/icecream_macosx_via_linux_cross.vars', "rb").read())