Ticket #65194: compiler.diff
File compiler.diff, 1.2 KB (added by jmroot (Joshua Root), 2 years ago) |
---|
-
platform/osx/detect.py
old new 24 24 return [ 25 25 ("osxcross_sdk", "OSXCross SDK version", "darwin14"), 26 26 ("MACOS_SDK_PATH", "Path to the macOS SDK", ""), 27 EnumVariable("macports_clang", "Build using Clang from MacPorts", "no", ("no", "5.0", "devel")),27 ("macports_clang", "Build using Clang from MacPorts", "no"), 28 28 BoolVariable("debug_symbols", "Add debugging symbols to release/release_debug builds", True), 29 29 BoolVariable("separate_debug_symbols", "Create a separate file containing debugging symbols", False), 30 30 BoolVariable("use_ubsan", "Use LLVM/GCC compiler undefined behavior sanitizer (UBSAN)", False), … … 97 97 env["AS"] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-as" 98 98 env.Append(CPPDEFINES=["__MACPORTS__"]) # hack to fix libvpx MM256_BROADCASTSI128_SI256 define 99 99 else: 100 env["CC"] = " clang"101 env["CXX"] = " clang++"100 env["CC"] = "/usr/bin/clang" 101 env["CXX"] = "/usr/bin/clang++" 102 102 103 103 detect_darwin_sdk_path("osx", env) 104 104 env.Append(CCFLAGS=["-isysroot", "$MACOS_SDK_PATH"])