mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add option -o
use this to pass a toolchain file to use
This commit is contained in:
parent
0472d99fc8
commit
0466d71d15
@ -57,7 +57,7 @@ test -z "$BUILDTHREADS" && BUILDTHREADS=1
|
||||
|
||||
PULL_REQUESTS=
|
||||
[ $# -eq 0 ] && usage
|
||||
while getopts "d:w:p:t:h" arg; do
|
||||
while getopts "d:w:p:t:o:h" arg; do
|
||||
case $arg in
|
||||
d) # OPM Data path to use
|
||||
echo "OPM_DATA ${OPTARG}"
|
||||
@ -75,6 +75,10 @@ while getopts "d:w:p:t:h" arg; do
|
||||
echo "PULL_REQUESTS ${OPTARG}"
|
||||
PULL_REQUESTS=${OPTARG}
|
||||
;;
|
||||
o) # Use given toolchain file
|
||||
echo "Using ${OPTARG} toolchain"
|
||||
CMAKE_TOOLCHAIN_FILES=${OPTARG}
|
||||
;;
|
||||
h) # Display help.
|
||||
usage
|
||||
exit 0
|
||||
@ -98,6 +102,8 @@ export OPM_DATA_ROOT_PREDEFINED="$OPM_DATA"
|
||||
export OPM_DATA_ROOT="$OPM_DATA"
|
||||
export WORKSPACE
|
||||
export BUILDTHREADS
|
||||
export BTYPES=serial
|
||||
export CMAKE_TOOLCHAIN_FILES
|
||||
export ghprbCommentBody="$PULL_REQUESTS"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user