summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/gccsnapshot.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-03 04:23:37 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-03 04:23:37 +0300
commitab3933316f4eb3bfa744fa92ce81f333328fb69f (patch)
tree5d2cadac69b78a6e5c8195d4a05dd884e564bba6 /tools/ci/jobs/gccsnapshot.sh
parent11811d5292ade273e296243f18477cd03228efc7 (diff)
downloadmv-ab3933316f4eb3bfa744fa92ce81f333328fb69f.tar.gz
mv-ab3933316f4eb3bfa744fa92ce81f333328fb69f.tar.bz2
mv-ab3933316f4eb3bfa744fa92ce81f333328fb69f.tar.xz
mv-ab3933316f4eb3bfa744fa92ce81f333328fb69f.zip
Use for Fedora raw hide own gcc flags, because gcc most time outdated.
Diffstat (limited to 'tools/ci/jobs/gccsnapshot.sh')
-rwxr-xr-xtools/ci/jobs/gccsnapshot.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/ci/jobs/gccsnapshot.sh b/tools/ci/jobs/gccsnapshot.sh
index b9b677fd8..00e7a9944 100755
--- a/tools/ci/jobs/gccsnapshot.sh
+++ b/tools/ci/jobs/gccsnapshot.sh
@@ -11,6 +11,10 @@ if [ "$NEWCXX" != "" ]; then
export CXX="$NEWCXX"
fi
+if [ "$FLAGS" == "" ]; then
+ export FLAGS="gccsnapshot.sh"
+fi
+
export PATH=/usr/lib/gcc-snapshot/bin:$PATH
source ./tools/ci/scripts/init.sh
@@ -20,7 +24,7 @@ export CXXFLAGS="$CXXFLAGS -pedantic -ggdb3 -O2 -pipe -Wstrict-aliasing=2 \
-std=gnu++1z -Wformat=1 \
-Wno-attributes -fno-omit-frame-pointer"
-source ./tools/ci/flags/gccsnapshot.sh
+source ./tools/ci/flags/${FLAGS}
export CXXFLAGS="$CXXFLAGS $POST_CXXFLAGS"