* 'disable_opt' of https://github.com/sitsofe/fio:
appveyor: disable setting compiler march
configure: make --disable-optimizations disable march=native
- SET PATH=%CYG_ROOT%\bin;%PATH% # NB: Changed env variables persist to later sections
build_script:
- - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && ./configure --extra-cflags=\"-Werror\" ${CONFIGURE_OPTIONS} && make.exe'
+ - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && ./configure --disable-native --extra-cflags=\"-Werror\" ${CONFIGURE_OPTIONS} && make.exe'
after_build:
- cd os\windows && dobuild.cmd %PLATFORM%
#!/bin/sh
#
# Fio configure script. Heavily influenced by the manual qemu configure
-# script. Sad this this is easier than autoconf and enemies.
+# script. Sad this is easier than autoconf and enemies.
#
# set temporary file name
return 0;
}
EOF
-if test "$disable_native" = "no" && compile_prog "-march=native" "" "march=native"; then
+if test "$disable_native" = "no" && test "$disable_opt" != "yes" && \
+ compile_prog "-march=native" "" "march=native"; then
build_native="yes"
fi
print_config "Build march=native" "$build_native"