mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-13 22:45:27 +08:00
switch to clang++ to compile/link
This commit is contained in:
@@ -41,7 +41,7 @@ module Motion; module Project;
|
||||
# Locate SDK and compilers.
|
||||
sdk = config.sdk(platform)
|
||||
cc = config.locate_compiler(platform, 'gcc')
|
||||
cxx = config.locate_compiler(platform, 'g++')
|
||||
cxx = config.locate_compiler(platform, 'clang++')
|
||||
|
||||
build_dir = File.join(config.versionized_build_dir(platform))
|
||||
App.info 'Build', build_dir
|
||||
|
||||
@@ -348,7 +348,7 @@ EOS
|
||||
|
||||
def locate_compiler(platform, *execs)
|
||||
paths = [File.join(platform_dir(platform), 'Developer/usr/bin')]
|
||||
paths.unshift File.join(xcode_dir, 'Toolchains/XcodeDefault.xctoolchain/usr/bin') if platform == 'iPhoneSimulator'
|
||||
paths.unshift File.join(xcode_dir, 'Toolchains/XcodeDefault.xctoolchain/usr/bin')
|
||||
|
||||
execs.each do |exec|
|
||||
paths.each do |path|
|
||||
|
||||
Reference in New Issue
Block a user