[macruby-changes] [4138] MacRuby/trunk/rakelib/builder.rake

source_changes at macosforge.org source_changes at macosforge.org
Sun May 23 21:49:20 PDT 2010


Revision: 4138
          http://trac.macosforge.org/projects/ruby/changeset/4138
Author:   lsansonetti at apple.com
Date:     2010-05-23 21:49:17 -0700 (Sun, 23 May 2010)
Log Message:
-----------
pass the same includes from CFLAGS to llvm-gcc

Modified Paths:
--------------
    MacRuby/trunk/rakelib/builder.rake

Modified: MacRuby/trunk/rakelib/builder.rake
===================================================================
--- MacRuby/trunk/rakelib/builder.rake	2010-05-24 04:37:37 UTC (rev 4137)
+++ MacRuby/trunk/rakelib/builder.rake	2010-05-24 04:49:17 UTC (rev 4138)
@@ -39,9 +39,10 @@
       $stderr.puts "Cannot locate opt in given LLVM path: #{LLVM_PATH}"
     end
     sh "echo '' > kernel_data.c"
+    includes = CFLAGS.scan(/-I[^\s]+/).join(' ')
     ARCHS.each do |x| 
       output = "kernel-#{x}.bc"
-      sh "#{llvm_gcc} -arch #{x} -fexceptions -I. -I./include --emit-llvm -c kernel.c -o #{output}"
+      sh "#{llvm_gcc} -arch #{x} -fexceptions #{includes} --emit-llvm -c kernel.c -o #{output}"
       sh "#{opt} -O3 #{output} -o=#{output}"
       sh "/usr/bin/xxd -i #{output} >> kernel_data.c"
       sh "/bin/rm #{output}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100523/f59863bd/attachment.html>


More information about the macruby-changes mailing list