[macruby-changes] [5272] MacRuby/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 11 14:15:56 PST 2011
Revision: 5272
http://trac.macosforge.org/projects/ruby/changeset/5272
Author: lsansonetti at apple.com
Date: 2011-03-11 14:15:55 -0800 (Fri, 11 Mar 2011)
Log Message:
-----------
now depend on revision 127367 of branch LLVM 2.9
Revision Links:
--------------
http://trac.macosforge.org/projects/ruby/changeset/127367
Modified Paths:
--------------
MacRuby/trunk/README.rdoc
MacRuby/trunk/bridgesupport.cpp
MacRuby/trunk/compiler.cpp
MacRuby/trunk/compiler.h
MacRuby/trunk/debugger.cpp
MacRuby/trunk/llvm.h
MacRuby/trunk/vm.cpp
Modified: MacRuby/trunk/README.rdoc
===================================================================
--- MacRuby/trunk/README.rdoc 2011-03-10 02:00:48 UTC (rev 5271)
+++ MacRuby/trunk/README.rdoc 2011-03-11 22:15:55 UTC (rev 5272)
@@ -16,22 +16,22 @@
=== Requirements
-* An Intel machine. PowerPC machines are not supported anymore, but may still
- work. An Intel 64-bit machine (Intel Core Duo 2) is recommended.
+* An Intel 64-bit machine. PowerPC and Intel 32-bit machines are not supported
+ anymore, but may still work.
* Mac OS X 10.6 or later.
-* LLVM ToT, compiled for both i386 and x86_64.
+* LLVM ToT, compiled for x86_64.
LLVM is a moving target and breaks periodically. We recommend to install
- revision tag 2.8, being sure to specify the correct C and C++ compilers through
- environment variables.
+ revision 127367 of branch 2.9, being sure to specify the correct C and
+ C++ compilers through environment variables.
- $ svn co https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_28 llvm-2.8
- $ cd llvm-2.8
- $ 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
+ $ svn co https://llvm.org/svn/llvm-project/llvm/branches/release_29@127367 llvm-2.9
+ $ cd llvm-2.9
+ $ env CC=/usr/bin/gcc CXX=/usr/bin/g++ ./configure --enable-bindings=none --enable-optimized --with-llvmgccdir=/tmp
+ $ env CC=/usr/bin/gcc CXX=/usr/bin/g++ make
+ $ sudo env CC=/usr/bin/gcc CXX=/usr/bin/g++ make install
Note that compiling LLVM can take quite a while. If you have a machine with
multiple cores, which is quite likely, you might want to speed up the process
@@ -40,14 +40,14 @@
option, where `N' stands for the number of cores you'd like to use. So for a
Core Duo the command would look like:
- $ env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ make -j2
+ $ env CC=/usr/bin/gcc CXX=/usr/bin/g++ make -j2
If you would prefer to update an existing LLVM Subversion working copy you
need to be careful to remove any previous build files before you compile:
$ svn status --no-ignore | awk '{print $2}' | xargs rm -rf
$ svn revert -R .
- $ svn switch https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_28
+ $ svn switch <repository-URL>
=== Build Instructions
Modified: MacRuby/trunk/bridgesupport.cpp
===================================================================
--- MacRuby/trunk/bridgesupport.cpp 2011-03-10 02:00:48 UTC (rev 5271)
+++ MacRuby/trunk/bridgesupport.cpp 2011-03-11 22:15:55 UTC (rev 5272)
@@ -18,7 +18,7 @@
# include <llvm/Instructions.h>
# include <llvm/Intrinsics.h>
# include <llvm/Analysis/DebugInfo.h>
-# if __SUPPORT_LLVM_29__
+# if !defined(LLVM_TOT)
# include <llvm/Analysis/DIBuilder.h>
# endif
# include <llvm/ExecutionEngine/JIT.h>
Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp 2011-03-10 02:00:48 UTC (rev 5271)
+++ MacRuby/trunk/compiler.cpp 2011-03-11 22:15:55 UTC (rev 5272)
@@ -150,7 +150,7 @@
RoxorCompiler::RoxorCompiler(bool _debug_mode)
{
assert(RoxorCompiler::module != NULL);
-#if __SUPPORT_LLVM_29__
+#if !defined(LLVM_TOT)
debug_info = new DIBuilder(*RoxorCompiler::module);
#else
debug_info = new DIFactory(*RoxorCompiler::module);
@@ -839,7 +839,7 @@
RoxorCompiler::attach_current_line_metadata(Instruction *insn)
{
if (fname != NULL) {
-#if __SUPPORT_LLVM_29__
+#if !defined(LLVM_TOT)
Value *args[] = {
ConstantInt::get(Int32Ty, current_line),
ConstantInt::get(Int32Ty, 0),
@@ -4892,7 +4892,7 @@
assert(strlen(dir) > 0);
assert(strlen(base) > 0);
-#if __SUPPORT_LLVM_29__
+#if !defined(LLVM_TOT)
debug_info->createCompileUnit(DW_LANG_Ruby, base, dir,
RUBY_DESCRIPTION, true, "", 1);
debug_compile_unit = DICompileUnit(debug_info->getCU());
Modified: MacRuby/trunk/compiler.h
===================================================================
--- MacRuby/trunk/compiler.h 2011-03-10 02:00:48 UTC (rev 5271)
+++ MacRuby/trunk/compiler.h 2011-03-11 22:15:55 UTC (rev 5272)
@@ -79,7 +79,7 @@
void generate_location_path(std::string &path, DILocation loc);
protected:
-#if __SUPPORT_LLVM_29__
+#if !defined(LLVM_TOT)
DIBuilder *debug_info;
#else
DIFactory *debug_info;
Modified: MacRuby/trunk/debugger.cpp
===================================================================
--- MacRuby/trunk/debugger.cpp 2011-03-10 02:00:48 UTC (rev 5271)
+++ MacRuby/trunk/debugger.cpp 2011-03-11 22:15:55 UTC (rev 5272)
@@ -15,7 +15,7 @@
#include <llvm/Instructions.h>
#include <llvm/Intrinsics.h>
#include <llvm/Analysis/DebugInfo.h>
-#if __SUPPORT_LLVM_29__
+#if !defined(LLVM_TOT)
# include <llvm/Analysis/DIBuilder.h>
#endif
#include <llvm/ExecutionEngine/JIT.h>
Modified: MacRuby/trunk/llvm.h
===================================================================
--- MacRuby/trunk/llvm.h 2011-03-10 02:00:48 UTC (rev 5271)
+++ MacRuby/trunk/llvm.h 2011-03-11 22:15:55 UTC (rev 5272)
@@ -17,7 +17,7 @@
#include <llvm/Instructions.h>
#include <llvm/Intrinsics.h>
#include <llvm/Analysis/DebugInfo.h>
-#if __SUPPORT_LLVM_29__
+#if !defined(LLVM_TOT)
# include <llvm/Analysis/DIBuilder.h>
#endif
#include <llvm/ExecutionEngine/JIT.h>
Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp 2011-03-10 02:00:48 UTC (rev 5271)
+++ MacRuby/trunk/vm.cpp 2011-03-11 22:15:55 UTC (rev 5272)
@@ -21,7 +21,7 @@
# include <llvm/Instructions.h>
# include <llvm/PassManager.h>
# include <llvm/Analysis/DebugInfo.h>
-# if __SUPPORT_LLVM_29__
+# if !defined(LLVM_TOT)
# include <llvm/Analysis/DIBuilder.h>
# endif
# include <llvm/Analysis/Verifier.h>
@@ -38,7 +38,7 @@
# include <llvm/Transforms/Scalar.h>
# include <llvm/Transforms/IPO.h>
# include <llvm/Support/raw_ostream.h>
-# if __SUPPORT_LLVM_29__
+# if !defined(LLVM_TOT)
# include <llvm/Support/system_error.h>
# endif
# include <llvm/Support/PrettyStackTrace.h>
@@ -4935,7 +4935,7 @@
const char *kernel_file = getenv("VM_KERNEL_PATH");
if (kernel_file != NULL) {
std::string err;
-#if __SUPPORT_LLVM_29__
+#if !defined(LLVM_TOT)
OwningPtr<MemoryBuffer> MB;
error_code errcode = MemoryBuffer::getFile(kernel_file, MB);
if (errcode) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110311/99de66ef/attachment.html>
More information about the macruby-changes
mailing list