swig@3.04: fix test

This commit is contained in:
Misty De Meo 2019-02-24 10:14:29 -08:00 committed by Misty De Meo
parent f3544543a3
commit 146a9c40f9

View file

@ -42,7 +42,7 @@ class SwigAT304 < Formula
EOS
system "#{bin}/swig", "-ruby", "test.i"
system ENV.cc, "-c", "test.c"
system ENV.cc, "-c", "test_wrap.c", "-I/System/Library/Frameworks/Ruby.framework/Headers/"
system ENV.cc, "-c", "test_wrap.c", "-I#{MacOS.sdk_path}/System/Library/Frameworks/Ruby.framework/Headers/"
system ENV.cc, "-bundle", "-flat_namespace", "-undefined", "suppress", "test.o", "test_wrap.o", "-o", "test.bundle"
assert_equal "2", shell_output("/usr/bin/ruby run.rb").strip
end