diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-10-24 20:57:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 20:57:38 +0200 |
commit | 68a54803c28dc2edab99225f2be7f9be0f8dcbed (patch) | |
tree | 3261850d65f12ec41aceab3af5b6a59d938713fd /platform/osx/detect.py | |
parent | ea901b263cbf53d37c4c53b78e2ddb6434b1d183 (diff) | |
parent | 7b64340eb008a11000518b9a15f15c673c7f2f25 (diff) |
Merge pull request #33035 from bruvzg/macos_fix_warnings
Fix compilation warnings in macOS build, enable `warnings=extra werror=yes`
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r-- | platform/osx/detect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index 881ed05025..7882253e7a 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -91,6 +91,9 @@ def configure(env): env['RANLIB'] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-ranlib" env['AS'] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-as" env.Append(CPPDEFINES=['__MACPORTS__']) #hack to fix libvpx MM256_BROADCASTSI128_SI256 define + else: + env['CC'] = 'clang' + env['CXX'] = 'clang++' detect_darwin_sdk_path('osx', env) env.Append(CCFLAGS=['-isysroot', '$MACOS_SDK_PATH']) |