$ svn co https://llvm.org/svn/llvm-project/llvm/branches/release_29@127367 llvm-2.9
$ cd llvm-2.9
$ env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ ./configure --enable-bindings=none --enable-optimized --with-llvmgccdir=/tmp
$ env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ make
$ sudo env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ make install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <MacRuby/MacRuby.h> | |
int main(void) | |
{ | |
id fooClass; | |
id foo; | |
[[MacRuby sharedRuntime] evaluateFileAtPath:@"test.rb"]; | |
fooClass = [[MacRuby sharedRuntime] evaluateString:@"Foo"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Rakefile b/Rakefile | |
index 1e41707..f94998c 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -77,6 +77,8 @@ specification_version: 2 | |
summary: N-dimensional Numerical Array class for Ruby | |
test_files: [] | |
+licenses: [] | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Rakefile b/Rakefile | |
index 1e41707..f94998c 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -77,6 +77,8 @@ specification_version: 2 | |
summary: N-dimensional Numerical Array class for Ruby | |
test_files: [] | |
+licenses: [] | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcc main.m -framework Foundation -framework MacRuby -fobjc-gc | |
$ ./a.out | |
Fixnum | |
42 |