[fix #4] fix a bug in simulator which cannot launch on Snow Leopard

it will compile sim.m to refer to the /usr/lib/libedit.2.dylib at runtime.
(libedit.2.dylib is a symbolic link to libedit.3.dylib on Mountain Lion and Lion.)
This commit is contained in:
Watson
2013-02-05 15:42:52 +09:00
parent 2bfbba1e0c
commit c47c8486df
4 changed files with 13 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ end
task :sim do
if !File.exist?('sim') or File.mtime('sim.m') > File.mtime('sim') or File.mtime('builtin_debugger_cmds.h') > File.mtime('sim')
sh "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -mmacosx-version-min=10.6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -I./src -std=c99 -Wall -O3 sim.m -o sim -framework Foundation -framework ApplicationServices -ledit -I."
sh "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -mmacosx-version-min=10.6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -I./src -std=c99 -Wall -O3 sim.m -o sim -framework Foundation -framework ApplicationServices -L. -ledit -Wl,-rpath,/usr/lib -I."
sh "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -x sim"
end
end