summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjunghyuk.park <junghyuk.park@samsung.com>2018-06-25 10:01:00 (GMT)
committerAlexander Soldatov/AI Ecosystem Lab /SRR/Staff Engineer/삼성전자 <soldatov.a@samsung.com>2019-02-14 17:24:48 (GMT)
commit4f957286fae800122add9156e418969ce2f5abc8 (patch)
tree9a6ef70d19e4a9b9009d9911326ffa35e718146c
parent2dd0d192c3b1b1d49e284d2ad065105bebf03aab (diff)
downloadcoreclr-4f957286fae800122add9156e418969ce2f5abc8.zip
coreclr-4f957286fae800122add9156e418969ce2f5abc8.tar.gz
coreclr-4f957286fae800122add9156e418969ce2f5abc8.tar.bz2
[Tizen] Enable -O3 optimization in clang 3.8
-rwxr-xr-xsrc/pal/tools/gen-buildsys-clang.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pal/tools/gen-buildsys-clang.sh b/src/pal/tools/gen-buildsys-clang.sh
index 597ae5d..a564f65 100755
--- a/src/pal/tools/gen-buildsys-clang.sh
+++ b/src/pal/tools/gen-buildsys-clang.sh
@@ -140,9 +140,9 @@ if [ "$build_arch" == "armel" ]; then
fi
clang_version=$( $CC --version | head -1 | sed 's/[^0-9]*\([0-9]*\.[0-9]*\).*/\1/' )
-# Use O1 option when the clang version is smaller than 3.9
+# Use O1 option when the clang version is smaller than 3.8
# Otherwise use O3 option in release build
-if [[ ( ${clang_version%.*} -eq 3 && ${clang_version#*.} -lt 9 ) &&
+if [[ ( ${clang_version%.*} -eq 3 && ${clang_version#*.} -lt 8 ) &&
( "$build_arch" == "arm" || "$build_arch" == "armel" ) ]]; then
overridefile=clang-compiler-override-arm.txt
else