summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjunghyuk.park <junghyuk.park@samsung.com>2018-06-25 10:01:00 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2018-09-18 12:49:14 (GMT)
commit4e0e7211cf15c139b7ff0cec2324cc9c34f0764e (patch)
tree735821ae9822775685ca665628885038c8e79f39
parent571ab4e1b1d6e8eb86deef1d3dbf359a7d159538 (diff)
downloadcoreclr-4e0e7211cf15c139b7ff0cec2324cc9c34f0764e.zip
coreclr-4e0e7211cf15c139b7ff0cec2324cc9c34f0764e.tar.gz
coreclr-4e0e7211cf15c139b7ff0cec2324cc9c34f0764e.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 b5726c8..adc99c3 100755
--- a/src/pal/tools/gen-buildsys-clang.sh
+++ b/src/pal/tools/gen-buildsys-clang.sh
@@ -157,9 +157,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