mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
oclang/ogcc wrapper: check if '-mmacosx-version-min=' is already given through the invocation command
This commit is contained in:
parent
e7160ea10a
commit
8a5c32021e
@ -22,6 +22,16 @@ else
|
||||
COMPILER="clang"
|
||||
fi
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
for p in "$@"
|
||||
do
|
||||
if [[ "$p" == -mmacosx-version-min=* ]]; then
|
||||
OSXCROSS_OSX_VERSION_MIN="default"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "$OSXCROSS_OSX_VERSION_MIN" != "default" ]; then
|
||||
OSX_VERSION_MIN_OPT="-mmacosx-version-min=$OSXCROSS_OSX_VERSION_MIN"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user