Lines 1-38
Link Here
|
1 |
--- configure.orig 2017-04-01 15:33:50 UTC |
1 |
--- configure.orig 2017-04-01 15:33:50 UTC |
2 |
+++ configure |
2 |
+++ configure |
3 |
@@ -22350,19 +22350,19 @@ llvm_add_target() { |
3 |
@@ -20307,15 +20307,17 @@ SSE41_CFLAGS=$SSE41_CFLAGS |
4 |
# Call this inside ` ` to get the return value. |
4 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5 |
# $1 is the llvm-config command with arguments. |
5 |
/* end confdefs.h. */ |
6 |
strip_unwanted_llvm_flags() { |
6 |
|
7 |
- # Use \> (marks the end of the word) |
7 |
+#include <stdint.h> |
8 |
- echo " `$1`" | sed \ |
8 |
int main() { |
9 |
- -e 's/\s\+-m\S*//g' \ |
9 |
- int n; |
10 |
- -e 's/\s\+-DNDEBUG\>//g' \ |
10 |
+ uint64_t n; |
11 |
- -e 's/\s\+-D_GNU_SOURCE\>//g' \ |
11 |
return __atomic_load_n(&n, __ATOMIC_ACQUIRE); |
12 |
- -e 's/\s\+-pedantic\>//g' \ |
|
|
13 |
- -e 's/\s\+-W\S*//g' \ |
14 |
- -e 's/\s\+-O\S*//g' \ |
15 |
- -e 's/\s\+-g\S*//g' \ |
16 |
- -e 's/-fno-rtti\>/-Fno-rtti/g' \ |
17 |
- -e 's/\s\+-f\S*//g' \ |
18 |
- -e 's/-Fno-rtti\>/-fno-rtti/g' \ |
19 |
- -e 's/^ //' |
20 |
+ echo " `$1` " | sed -E \ |
21 |
+ -e 's/[[:space:]]+-m[^[:space:]]*//g' \ |
22 |
+ -e 's/[[:space:]]+-DNDEBUG[[:space:]]/ /g' \ |
23 |
+ -e 's/[[:space:]]+-D_GNU_SOURCE[[:space:]]/ /g' \ |
24 |
+ -e 's/[[:space:]]+-pedantic[[:space:]]/ /g' \ |
25 |
+ -e 's/[[:space:]]+-W[^[:space:]]*//g' \ |
26 |
+ -e 's/[[:space:]]+-O[^[:space:]]*//g' \ |
27 |
+ -e 's/[[:space:]]+-g[^[:space:]]*//g' \ |
28 |
+ -e 's/-fno-rtti[[:space:]]/-Fno-rtti /g' \ |
29 |
+ -e 's/[[:space:]]+-f[^[:space:]]*//g' \ |
30 |
+ -e 's/-Fno-rtti[[:space:]]/-fno-rtti /g' \ |
31 |
+ -e 's/^[[:space:]]//' \ |
32 |
+ -e 's/[[:space:]]$//' |
33 |
} |
12 |
} |
34 |
|
13 |
_ACEOF |
35 |
llvm_set_environment_variables() { |
14 |
-if ac_fn_c_try_compile "$LINENO"; then : |
|
|
15 |
+if ac_fn_c_try_link "$LINENO"; then : |
16 |
GCC_ATOMIC_BUILTINS_SUPPORTED=1 |
17 |
fi |
18 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19 |
+rm -f core conftest.err conftest.$ac_objext \ |
20 |
+ conftest$ac_exeext conftest.$ac_ext |
21 |
if test "x$GCC_ATOMIC_BUILTINS_SUPPORTED" = x1; then |
22 |
DEFINES="$DEFINES -DUSE_GCC_ATOMIC_BUILTINS" |
23 |
fi |
36 |
@@ -22560,7 +22560,7 @@ fi |
24 |
@@ -22560,7 +22560,7 @@ fi |
37 |
|
25 |
|
38 |
|
26 |
|