testing/slurm: remove -O0 compile option

I was not able to reproduce the commented issue. if -Os is broken, then
we need to troubleshoot it and fix it.
This commit is contained in:
Natanael Copa 2018-07-17 20:17:12 +00:00
parent afa66c0780
commit 64e758e582

View File

@ -21,12 +21,9 @@ build() {
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
# Optimizations beyond -O0 result in the binary failing to execute past the help
# screen. Upon execution, the failing binary will exit producing the message:
# "Illegal instruction"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS="${CFLAGS/-Os/-O0} -Wno-aggressive-loop-optimizations" \
-DCMAKE_C_FLAGS="${CFLAGS} -Wno-aggressive-loop-optimizations" \
${CMAKE_CROSSOPTS}
make
}