diff options
Diffstat (limited to 'ext/-test-/cxxanyargs/extconf.rb')
-rw-r--r-- | ext/-test-/cxxanyargs/extconf.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/-test-/cxxanyargs/extconf.rb b/ext/-test-/cxxanyargs/extconf.rb index b3f45477ad..d2a740b989 100644 --- a/ext/-test-/cxxanyargs/extconf.rb +++ b/ext/-test-/cxxanyargs/extconf.rb @@ -23,6 +23,9 @@ end if ok $srcs = %w[cxxanyargs.cpp] - $cleanfiles << "failure.failed" - create_makefile("-test-/cxxanyargs") + failures = Dir.glob($srcdir + "/failure*.cpp").map {|n| File.basename(n)} + $cleanfiles << "$(FAILURES:.cpp=.failed)" + create_makefile("-test-/cxxanyargs") do |mk| + mk << "FAILURES #{['=', failures].join(' ')}\n" + end end |