test.sh compiler flags

This commit is contained in:
Joseph Mattiello 2025-07-06 16:08:42 -04:00
parent 95269b868b
commit 66762ff325
1 changed files with 34 additions and 2 deletions

View File

@ -44,10 +44,42 @@ if [ "${ARCH}" = "arm64" ]; then
else
TUNE_FLAGS=""
fi
C_FLAGS="-arch ${ARCH} ${TUNE_FLAGS} \
C_FLAGS=" \
-arch ${ARCH} \
${TUNE_FLAGS} \
-fdata-sections \
-ffast-math \
-ffunction-sections \
-finline-functions \
-flto=thin \
-fno-strict-aliasing \
-fomit-frame-pointer \
-fpermissive \
-ftree-vectorize \
-funsafe-math-optimizations \
-fvectorize \
-march=armv8-a+simd \
-mcpu=apple-a10 \
-O3 \
-DTARGET_NO_NIXPROF"
CXX_FLAGS="-arch ${ARCH} ${TUNE_FLAGS} \
CXX_FLAGS=" \
-arch ${ARCH} \
${TUNE_FLAGS} \
-fdata-sections \
-ffast-math \
-ffunction-sections \
-finline-functions \
-flto=thin \
-fno-strict-aliasing \
-fomit-frame-pointer \
-fpermissive \
-ftree-vectorize \
-funsafe-math-optimizations \
-fvectorize \
-march=armv8-a+simd \
-mcpu=apple-a10 \
-O3 \
-DTARGET_NO_NIXPROF"
# Simple helper to configure, build and run the C++ unit-tests (GoogleTest)