Skip to content

Commit

Permalink
toolchain: avoid use of arch in install scripts
Browse files Browse the repository at this point in the history
`arch` is basically an alias for `uname -m` but it is not available on
all systems. Use `uname -m` instead. See:
https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html
  • Loading branch information
michaellass authored and oschuett committed Apr 12, 2020
1 parent 6124675 commit 382682f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/toolchain/scripts/install_sirius.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ case "$with_sirius" in
require_env SPFFT_CFLAGS
require_env SPFFT_LDFLAGS
require_env SPFFT_LIBS
ARCH=`arch`
ARCH=`uname -m`
SIRIUS_OPT="-O3 -DNDEBUG -mtune=native -ftree-loop-vectorize ${MATH_CFLAGS}"
if [ "$ARCH" = "ppc64le" ]; then
SIRIUS_OPT="-O3 -DNDEBUG -mcpu=power8 -mtune=power8 -funroll-loops -ftree-vectorize -mvsx -maltivec -mpopcntd -mveclibabi=mass -fvect-cost-model -fpeel-loops -mcmodel=medium ${MATH_CFLAGS}"
Expand Down

0 comments on commit 382682f

Please sign in to comment.