summaryrefslogtreecommitdiff
path: root/etc/scons/xcode_macosx.vars
blob: 865a4f1184c7e88794461f6b9f4add8ef682630b (plain)
1
2
3
4
5
6
7
8
9
10
11
# Configures the build to use XCode targeting macOS

import subprocess

CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'macosx', 'clang']).strip()
CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'macosx', 'clang++']).strip()

sdk_path = subprocess.check_output(['xcrun', '--sdk', 'macosx', '--show-sdk-path']).strip()

CCFLAGS = "-isysroot {} -mmacosx-version-min=10.10".format(sdk_path)
LINKFLAGS = "-Wl,-syslibroot,{} -mmacosx-version-min=10.10".format(sdk_path)