diff options
author | Que Quotion | 2019-09-26 09:38:40 +0900 |
---|---|---|
committer | Que Quotion | 2019-09-26 09:38:40 +0900 |
commit | 7b140304d73b84e71e3cd28250f985bb35ca5685 (patch) | |
tree | 1bca0d5923e41a4dcdc50fb0dc38dcab64c4b480 /rice.sh.in | |
parent | 07e32248a7aa0fdfb7b35f4cd9d7315c34e3687a (diff) | |
download | aur-7b140304d73b84e71e3cd28250f985bb35ca5685.tar.gz |
Separate options for clang; reduce overlap in graphite and rice; intensify graphite flags; output status messages from pgo
Diffstat (limited to 'rice.sh.in')
-rw-r--r-- | rice.sh.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rice.sh.in b/rice.sh.in index ebe800c6bd09..9f253488786e 100644 --- a/rice.sh.in +++ b/rice.sh.in @@ -10,12 +10,15 @@ LIBRARY=${LIBRARY:-'@libmakepkgdir@'} source "$LIBRARY/util/option.sh" -build_options+=('rice') +build_options+=('rice' 'rice-clang') buildenv_functions+=('buildenv_rice') buildenv_rice() { - if check_buildoption "rice" "y"; then - riceflags=" -Ofast -fbranch-target-load-optimize2 -fcx-fortran-rules -fdata-sections -ffloat-store -fgcse-las -fgcse-sm -fipa-pta -floop-nest-optimize -fmodulo-sched -fmodulo-sched-allow-regmoves -fno-enforce-eh-specs -funsafe-math-optimizations -fno-threadsafe-statics -fnothrow-opt -fno-var-tracking-assignments -fomit-frame-pointer -fopenmp -fPIC -freg-struct-return -freschedule-modulo-scheduled-loops -fsched-pressure -fsched-spec-load -fsched-spec-load-dangerous -fsched-stalled-insns=0 -fsched2-use-superblocks -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fshort-wchar -ftree-parallelize-loops=$(getconf _NPROCESSORS_ONLN) -ftree-lrs -ftree-vectorize -fvariable-expansion-in-unroller -maccumulate-outgoing-args -Wno-sizeof-pointer-memaccess" # -fmerge-all-constants + if check_buildoption "rice" "y" || check_buildoption "rice-clang" "y"; then + riceflags=" -Ofast -fdata-sections -ffloat-store -fgcse-las -fgcse-sm -fmodulo-sched -fmodulo-sched-allow-regmoves -funsafe-math-optimizations -fno-threadsafe-statics -fomit-frame-pointer -fopenmp -fPIC -freg-struct-return -fshort-wchar -fvariable-expansion-in-unroller -Wno-sizeof-pointer-memaccess -pthread" # + check_buildoption "rice" "y" && \ + riceflags+=" -fbranch-target-load-optimize2 -fcx-fortran-rules -fipa-pta -fno-enforce-eh-specs -fnothrow-opt -fno-var-tracking-assignments -freschedule-modulo-scheduled-loops -fsched-pressure -fsched-spec-load -fsched-spec-load-dangerous -fsched-stalled-insns=0 -fsched2-use-superblocks -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -ftree-lrs -maccumulate-outgoing-args" # -fmerge-all-constants + riceldflags=" -lpthread -lgomp" # -shared CFLAGS+="$riceflags" CXXFLAGS+="$riceflags" |