Ticket #65194: compiler.diff

File compiler.diff, 1.2 KB (added by jmroot (Joshua Root), 2 years ago)
  • platform/osx/detect.py

    old new  
    2424    return [
    2525        ("osxcross_sdk", "OSXCross SDK version", "darwin14"),
    2626        ("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"),
    2828        BoolVariable("debug_symbols", "Add debugging symbols to release/release_debug builds", True),
    2929        BoolVariable("separate_debug_symbols", "Create a separate file containing debugging symbols", False),
    3030        BoolVariable("use_ubsan", "Use LLVM/GCC compiler undefined behavior sanitizer (UBSAN)", False),
     
    9797            env["AS"] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-as"
    9898            env.Append(CPPDEFINES=["__MACPORTS__"])  # hack to fix libvpx MM256_BROADCASTSI128_SI256 define
    9999        else:
    100             env["CC"] = "clang"
    101             env["CXX"] = "clang++"
     100            env["CC"] = "/usr/bin/clang"
     101            env["CXX"] = "/usr/bin/clang++"
    102102
    103103        detect_darwin_sdk_path("osx", env)
    104104        env.Append(CCFLAGS=["-isysroot", "$MACOS_SDK_PATH"])