Skip to content
Snippets Groups Projects
Commit fe460ac9 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

In theory, gcc -v should give target arch

parent 668d6266
No related branches found
No related tags found
1 merge request!49Resolve "Finish installation and usage instruction on the documentation"
......@@ -7,8 +7,7 @@
# CMAKE_INSTALL_PREFIX
# (optional) SUDOCMD
host="$(pacman --version)"
host="$(gcc -v)"
set -e
# options file may be passed as argument
......
......@@ -48,8 +48,8 @@ if [[ -z $OS_TARGET ]]; then
[ ! -w "$CMAKE_INSTALL_PREFIX" ] && SUDOCMD="sudo"
elif [[ "$OSTYPE" == "msys" ]]; then
# Lightweight shell and GNU utilities compiled for Windows (part of MinGW)
[[ "$(uname -a)" = 'x86_64'* ]] && OS_TARGET="win64"
[[ "$(uname -a)" = 'i686'* ]] && OS_TARGET="win32"
[[ "$(gcc -v)" = *'x86_64'* ]] && OS_TARGET="win64"
[[ "$(gcc -v)" = *'i686'* ]] && OS_TARGET="win32"
CXX_FLAGS+="-static -static-libgcc -Wa,-mbig-obj"
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment