projects
/
platform
/
upstream
/
leveldb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
980836e
)
Modify check for -msse4.2 flag to support clang
sandbox/nmerinov/llvm
author
Nikolai Merinov
<n.merinov@samsung.com>
Tue, 12 Feb 2019 08:24:22 +0000
(11:24 +0300)
committer
Nikolai Merinov
<n.merinov@samsung.com>
Tue, 12 Feb 2019 08:24:22 +0000
(11:24 +0300)
build_detect_platform
patch
|
blob
|
history
diff --git
a/build_detect_platform
b/build_detect_platform
index 29d93ba94b2bc8cb8600e2c0a4168a7834d02c4d..e962b2b3074fae57539f6640474f15356d189797 100755
(executable)
--- a/
build_detect_platform
+++ b/
build_detect_platform
@@
-224,7
+224,9
@@
EOF
rm -f $CXXOUTPUT 2>/dev/null
# Test if gcc SSE 4.2 is supported
- $CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT -msse4.2 2>/dev/null <<EOF
+ # clang will emit only "argument unused during compilation: '-msse4.2'" warning
+ # make it error with -Werror
+ $CXX $CXXFLAGS -Werror -x c++ - -o $CXXOUTPUT -msse4.2 2>/dev/null <<EOF
int main() {}
EOF
if [ "$?" = 0 ]; then