-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathclang_openmp_maci64.xml
executable file
·130 lines (126 loc) · 6.53 KB
/
clang_openmp_maci64.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0" encoding="UTF-8" ?>
<config
Name="LLVM Clang OpenMP"
ShortName="Clang OpenMP"
Manufacturer="LLVM"
Version=""
Language="C"
Priority="A"
Location="$XCODE_DIR" >
<Details
CompilerExecutable="$CC"
CompilerDefines="$DEFINES"
CompilerFlags="$CFLAGS"
OptimizationFlags="$COPTIMFLAGS"
DebugFlags="$CDEBUGFLAGS"
IncludeFlags="$INCLUDE"
LinkerLibraries="$LINKLIBS"
LinkerOptimizationFlags="$LDOPTIMFLAGS"
LinkerDebugFlags="$LDDEBUGFLAGS"
CompilerDefineFormatter="-D%s"
LinkerLibrarySwitchFormatter="-l%s"
LinkerPathFormatter="-L%s"
/>
<vars
CMDLINE100="$CC -c $DEFINES $INCLUDE $CFLAGS $OPTIM $SRC -o $OBJ"
CMDLINE200="$LD $LDFLAGS $OBJS $LINKOPTIM $LINKEXPORTVER $CLIBS $LINKLIBS -o $EXE"
CC="/usr/local/opt/llvm/bin/clang"
CXX="/usr/local/opt/llvm/bin/clang++"
DEFINES="$MATLABMEX"
MATLABMEX="-DMATLAB_MEX_FILE"
MACOSX_DEPLOYMENT_TARGET="10.9"
CFLAGS="-fno-common -arch x86_64 -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -fexceptions -isysroot $ISYSROOT -fopenmp=libiomp5 -Wall -I/usr/local/opt/llvm/include"
INCLUDE="-I"$MATLABROOT/extern/include" -I"$MATLABROOT/simulink/include""
COPTIMFLAGS="-O2 -fwrapv -DNDEBUG"
CDEBUGFLAGS="-g"
LD="$CC"
LDXX="$CXX"
LDFLAGS="-Wl,-twolevel_namespace -undefined error -arch x86_64 -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -Wl,-syslibroot,$ISYSROOT $LDBUNDLE $LINKEXPORT -L$MATLABROOT/sys/os/maci64 -L/usr/local/opt/llvm/lib -Wl,-rpath,$MATLABROOT/sys/os/maci64:/usr/local/opt/llvm/lib -fopenmp=libiomp5"
LDBUNDLE="-bundle "
FUNCTIONMAP=""$MATLABROOT/extern/lib/maci64/mexFunction.map""
VERSIONMAP=""$MATLABROOT/extern/lib/maci64/c_exportsmexfileversion.map""
LINKEXPORT="-Wl,-exported_symbols_list,$FUNCTIONMAP"
LINKEXPORTVER="-Wl,-exported_symbols_list,$VERSIONMAP"
LINKLIBS="-L"$MATLABROOT/bin/maci64" -lmx -lmex -lmat -lc++"
LDOPTIMFLAGS="-O"
LDDEBUGFLAGS="-g"
OBJEXT=".o"
LDEXT=".mexmaci64"
SETENV="CC="$CC"
CXX="$CXX"
CFLAGS="$CFLAGS $DEFINES"
CXXFLAGS="$CFLAGS -fobjc-arc -std=c++11 -stdlib=libc++ $DEFINES"
COPTIMFLAGS="$COPTIMFLAGS"
CXXOPTIMFLAGS="$COPTIMFLAGS"
CDEBUGFLAGS="$CDEBUGFLAGS"
CXXDEBUGFLAGS="$CDEBUGFLAGS"
LD="$LD"
LDXX="$LDXX"
LDFLAGS="$LDFLAGS $LINKLIBS $LINKEXPORT"
LDDEBUGFLAGS="$LDDEBUGFLAGS""
/>
<client>
<engine
LINKLIBS="$LINKLIBS -leng"
LDBUNDLE=""
LINKEXPORT=""
LINKEXPORTVER=""
LDEXT=""
/>
<mbuild
CMDLINE150="$MATLABROOT/bin/maci64/macbundle $EXENAME "$EXEDIR""
CMDLINE200="$LD $LDFLAGS $OBJS $LINKOPTIM $LINKEXPORT $CLIBS $LINKLIBS -o "$EXEDIR$EXENAME.app/Contents/MacOS/$EXENAME""
MACOSX_DEPLOYMENT_TARGET="10.9"
CFLAGS="-fno-common -arch x86_64 -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -isysroot $ISYSROOT"
DEFINES="-DUNIX -DX11"
LDFLAGS="-arch x86_64 -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -Wl,-syslibroot,$ISYSROOT $LDTYPE $LINKEXPORT -framework CoreFoundation -bind_at_load"
LINKEXPORT=""
LINKEXPORTVER=""
LINKLIBS="-L"$MATLABROOT/runtime/maci64" -lmwmclmcrrt"
MATLABMEX=""
LDEXT=".app"
LDTYPE=""
/>
</client>
<locationFinder>
<!--Check for faulty DEVELOPER_DIR environment variable -->
<DEVELOPER_DIR_CHECK>
<or>
<not>
<envVarExists name="DEVELOPER_DIR" />
</not>
<dirExists name="$$" diagnostic="The environment variable DEVELOPER_DIR indicates a folder that does not exist. Please correct or delete this variable before using MEX." />
</or>
</DEVELOPER_DIR_CHECK>
<!-- User needs to run "!sudo xcode-select -switch /Applications/Xcode.app/"
to configure xcrun. This creates the file /usr/share/xcode-select/xcode_dir_path -->
<XCODE_DIR>
<and diagnostic="Xcode appears to be installed, but it has not been configured. Run "<a href="matlab:system(['osascript -e ''do shell script ' char(34) 'xcode-select -switch /Applications/Xcode.app' char(34) ' with administrator privileges'''])">osascript -e 'do shell script "xcode-select -switch /Applications/Xcode.app" with administrator privileges'</a>" to configure Xcode. You must be an administrator of this computer to complete this action." >
<cmdReturns name="xcode-select -print-path" />
<dirExists name="$$" />
</and>
</XCODE_DIR>
<XCRUN_DIR>
<and>
<cmdReturns name="which xcrun" />
<dirExists name="$$" />
</and>
</XCRUN_DIR>
<!-- User needs to agree to license of the version (or higher) that we support -->
<XCODE_AGREED_VERSION>
<and diagnostic="Xcode is installed, but its license has not been accepted. Run Xcode and accept its license agreement." >
<or>
<cmdReturns name="defaults read com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense"/>
<cmdReturns name="defaults read /Library/Preferences/com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense"/>
</or>
<cmdReturns name=" agreed=$$ if echo $agreed | grep -E '[\.\"]' >/dev/null; then lhs=`expr "$agreed" : '\([0-9]*\)[\.].*'` rhs=`expr "$agreed" : '[0-9]*[\.]\(.*\)$'` if echo $rhs | grep -E '[\."]' >/dev/null; then rhs=`expr "$rhs" : '\([0-9]*\)[\.].*'` fi if [ $lhs -gt 4 ] || ( [ $lhs -eq 4 ] && [ $rhs -ge 3 ] ); then echo $agreed else exit 1 fi fi" />
</and>
</XCODE_AGREED_VERSION>
<ISYSROOT>
<cmdReturns name="xcrun -sdk macosx --show-sdk-path"/>
</ISYSROOT>
<SDKVER>
<cmdReturns name="xcrun -sdk macosx --show-sdk-version"/>
</SDKVER>
</locationFinder>
</config>