Browse Source

-fprefetch-loop-arrays is not supported on clang

Signed-off-by: falkTX <falktx@falktx.com>
pull/28/head
falkTX 2 years ago
parent
commit
0f5183a118
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      setup/env.sh

+ 5
- 1
setup/env.sh View File

@@ -54,10 +54,14 @@ PAWPAW_TMPDIR="/tmp"

BUILD_FLAGS="-O2 -pipe -I${PAWPAW_PREFIX}/include ${EXTRA_FLAGS}"
BUILD_FLAGS+=" -ffast-math"
BUILD_FLAGS+=" -fomit-frame-pointer -fprefetch-loop-arrays -ftree-vectorize -funroll-loops"
BUILD_FLAGS+=" -fomit-frame-pointer -ftree-vectorize -funroll-loops"
BUILD_FLAGS+=" -fPIC -DPIC -DNDEBUG -D_FORTIFY_SOURCE=2"
BUILD_FLAGS+=" -fdata-sections -ffunction-sections -fno-common -fstack-protector -fvisibility=hidden"

if [ "${MACOS}" -eq 0 ]; then
BUILD_FLAGS+=" -fprefetch-loop-arrays"
fi

if [ -z "${PAWPAW_SKIP_LTO}" ] || [ "${PAWPAW_SKIP_LTO}" -eq 0 ]; then
BUILD_FLAGS+=" -fno-strict-aliasing -flto"
fi


Loading…
Cancel
Save