We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c22784 commit c5a3a8aCopy full SHA for c5a3a8a
Rakefile
@@ -437,3 +437,11 @@ task :changelog do
437
puts " (🤑 There is no *unreleased* pull request associated to the milestone.)"
438
end
439
440
+
441
+desc "Compile extension without C23 extensions"
442
+task :compile_c99 do
443
+ ENV["TEST_NO_C23"] = "true"
444
+ Rake::Task[:"compile"].invoke
445
+ensure
446
+ ENV.delete("TEST_NO_C23")
447
+end
ext/rbs_extension/extconf.rb
@@ -13,5 +13,9 @@
13
14
append_cflags ['-std=gnu99', '-Wimplicit-fallthrough', '-Wunused-result']
15
append_cflags ['-O0', '-g'] if ENV['DEBUG']
16
+if ENV["TEST_NO_C23"]
17
+ puts "Adding -Wc2x-extensions to CFLAGS"
18
+ $CFLAGS << " -Werror -Wc2x-extensions"
19
20
21
create_makefile 'rbs_extension'
0 commit comments