summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 597ae5d76d..a564f65eb9 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