Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ usage()
echo
}

if [ "$1" == "-?" ]; then
if [ "$1" == "-?" ] || [ "$1" == "-h" ]; then
usage
if [ "$1" == "-h" ]; then
set -- "-?"
fi
fi

__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
__workingDir=$(pwd -P)

if [ "$1" != "" ]; then
if [ "$1" != "" ] && [[ "$1" != -* ]]; then
if [ -d $__workingDir/$1 ]; then
$__scriptpath/run.sh build-directory -directory:$__workingDir/$*
exit $?
Expand Down
6 changes: 6 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@
"values": [],
"defaultValue": "Please-Specify-A-Directory"
},
"Clang": {
"description": "Specific version of Clang to use e.g. clang3.7, clang3.8, etc ...",
"valueType": "property",
"values": [],
"defaultValue": ""
},
},
"commands": {
"build-directory": {
Expand Down
6 changes: 6 additions & 0 deletions src/Native/build-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ while :; do
generateversion)
__generateversionsource=true
;;
--clang*)
# clangx.y or clang-x.y
v=`echo $lowerI | tr -d '[:alpha:]-='`
__ClangMajorVersion=`echo $v | cut -d '.' -f1`
__ClangMinorVersion=`echo $v | cut -d '.' -f2`
;;
clang3.5)
__ClangMajorVersion=3
__ClangMinorVersion=5
Expand Down