From 349f95e7b8bf7c76c7f15375c8f9c541e56f9c19 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Fri, 10 Jan 2014 23:54:36 +0100 Subject: [PATCH] pass the target platform to the compiler --- lib/motion/project/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb index d44621e7..45b3817f 100644 --- a/lib/motion/project/builder.rb +++ b/lib/motion/project/builder.rb @@ -127,7 +127,7 @@ module Motion; module Project; else arch end - sh "/usr/bin/env VM_KERNEL_PATH=\"#{kernel}\" VM_OPT_LEVEL=\"#{config.opt_level}\" /usr/bin/arch -arch #{compiler_exec_arch} #{ruby} #{rubyc_bs_flags} --emit-llvm \"#{asm}\" #{init_func} \"#{path}\"" + sh "/usr/bin/env VM_PLATFORM=\"#{platform}\" VM_KERNEL_PATH=\"#{kernel}\" VM_OPT_LEVEL=\"#{config.opt_level}\" /usr/bin/arch -arch #{compiler_exec_arch} #{ruby} #{rubyc_bs_flags} --emit-llvm \"#{asm}\" #{init_func} \"#{path}\"" # Object arch_obj = File.join(files_build_dir, "#{path}.#{arch}.o")