We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f0bb5ca + 8c66e08 commit 7f7ef1eCopy full SHA for 7f7ef1e
ext/appmap/extconf.rb
@@ -1,6 +1,17 @@
1
require "mkmf"
2
3
+
4
$CFLAGS='-Werror'
5
6
+# Per https://bugs.ruby-lang.org/issues/17865,
7
+# compound-token-split-by-macro was added in clang 12 and broke
8
+# compilation with some of the ruby headers. If the current compiler
9
+# supports the new warning, turn it off.
10
+new_warning = '-Wno-error=compound-token-split-by-macro'
11
+if try_cflags(new_warning)
12
+ $CFLAGS += ' ' + new_warning
13
+end
14
15
extension_name = "appmap"
16
dir_config(extension_name)
17
create_makefile(File.join(extension_name, extension_name))
0 commit comments