Skip to content

Commit 4611ca7

Browse files
authored
Merge pull request #1344 from rsmarples/fix-clang
Fix compiling with clang
2 parents 88e3ec6 + 609332f commit 4611ca7

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

generate/templates/templates/binding.gyp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,9 @@
9898
}
9999
],
100100
[
101-
"OS=='linux' and '<!(echo \"$CXX\")'=='clang++'", {
101+
"OS=='linux' or OS.endswith('bsd')", {
102102
"cflags": [
103-
"-Wno-c++11-extensions"
104-
]
105-
}
106-
],
107-
[
108-
"OS=='linux' and '<!(echo \"$CXX\")'!='clang++'", {
109-
"cflags": [
110-
"-std=c++0x"
103+
"-std=c++11"
111104
]
112105
}
113106
]

vendor/openssl/openssl.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
}],
153153
]
154154
}],
155-
['is_clang==1 or gcc_version>=43', {
155+
['gcc_version>=43', {
156156
'cflags': ['-Wno-old-style-declaration'],
157157
}],
158158
['OS=="solaris"', {

0 commit comments

Comments
 (0)