[MacRuby] #729: rbconfig.rb does not honor ARCH_FLAG
#729: rbconfig.rb does not honor ARCH_FLAG ------------------------------+--------------------------------------------- Reporter: joelr1@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- rbconfig.rb file does not honor the ARCH_FLAG environment variable and is hard-coded to "-arch i386 -arch x86_64" -- Ticket URL: <http://www.macruby.org/trac/ticket/729> MacRuby <http://macruby.org/>
#729: rbconfig.rb does not honor ARCH_FLAG ------------------------------+--------------------------------------------- Reporter: joelr1@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by martinlagardette@…): You can actually use RC_ARCHS to do this: {{{ $> RC_ARCHS="x86_64" rake jobs=2 optz_level=0 (in /Users/naixn/Documents/Projets/MacRuby) Getting archs from RC_ARCHS! /usr/bin/bison -o y.tab.c parse.y parse.y: conflicts: 1 shift/reduce /usr/bin/sed -f ./tool/ytab.sed -e "/^#/s!y.tab.c!parse.c!" y.tab.c > parse.c.new mv parse.c.new parse.c rm -f parse.o cp lex.c.blt lex.c /usr/bin/ruby -n tool/node_name.rb include/ruby/node.h > node_name.inc echo '' > kernel_data.c /Developer/usr/bin/llvm-gcc -arch x86_64 -fexceptions -I. -I./include -I/usr/include/libxml2 -I./icu-1060 --emit-llvm -c kernel.c -o kernel- x86_64.bc /usr/local/bin/opt -O3 kernel-x86_64.bc -o=kernel-x86_64.bc /bin/dd if=/dev/zero count=1 bs=1 conv=notrunc >> kernel-x86_64.bc 2>/dev/null /usr/bin/xxd -i kernel-x86_64.bc >> kernel_data.c /bin/rm kernel-x86_64.bc /usr/bin/gcc-4.2 -I. -I./include -I/usr/include/libxml2 -arch x86_64 -fno- common -pipe -g -Wall -fexceptions -O0 -Wno-deprecated-declarations -Werror -std=c99 -I./icu-1060 -c array.c -o array.o /usr/bin/gcc-4.2 -I. -I./include -I/usr/include/libxml2 -arch x86_64 -fno- common -pipe -g -Wall -fexceptions -O0 -Wno-deprecated-declarations -Werror -std=c99 -I./icu-1060 -c bignum.c -o bignum.o /usr/bin/gcc-4.2 -I. -I./include -I/usr/include/libxml2 -arch x86_64 -fno- common -pipe -g -Wall -fexceptions -O0 -Wno-deprecated-declarations -Werror -std=c99 -I./icu-1060 -c class.c -o class.o /usr/bin/gcc-4.2 -I. -I./include -I/usr/include/libxml2 -arch x86_64 -fno- common -pipe -g -Wall -fexceptions -O0 -Wno-deprecated-declarations -Werror -std=c99 -I./icu-1060 -c compar.c -o compar.o }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/729#comment:1> MacRuby <http://macruby.org/>
#729: rbconfig.rb does not honor ARCH_FLAG ------------------------------+--------------------------------------------- Reporter: joelr1@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): That's not enough, rbconfig.rb should honor ARCH_FLAG so that later you can decide to build an extension for a specific architecture. -- Ticket URL: <http://www.macruby.org/trac/ticket/729#comment:2> MacRuby <http://macruby.org/>
#729: rbconfig.rb does not honor ARCH_FLAG ------------------------------+--------------------------------------------- Reporter: joelr1@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by martinlagardette@…): This should be fixed with r4148. Joel can you confirm? :-) (please not that we use ARCHFLAGS without underscore). -- Ticket URL: <http://www.macruby.org/trac/ticket/729#comment:3> MacRuby <http://macruby.org/>
#729: rbconfig.rb does not honor ARCH_FLAG ------------------------------+--------------------------------------------- Reporter: joelr1@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): Nope, this is not fixed. {{{ $ /usr/local/bin/macruby -r rbconfig -e "p RbConfig::CONFIG['CFLAGS']" "$(ARCHFLAGS) -fexceptions -fno-common -pipe -O3 -g -Wall" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/729#comment:4> MacRuby <http://macruby.org/>
#729: rbconfig.rb does not honor ARCH_FLAG ------------------------------+--------------------------------------------- Reporter: joelr1@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------+--------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Should be fixed in r4193. {{{ $ /usr/local/bin/macruby -r rbconfig -e "p RbConfig::CONFIG['CFLAGS']" "-arch i386 -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall" $ ARCHFLAGS="-arch ppc" /usr/local/bin/macruby -r rbconfig -e "p RbConfig::CONFIG['CFLAGS']" "-arch ppc -fexceptions -fno-common -pipe -O3 -g -Wall" }}} Please note that the environment variable is ARCHFLAGS. Same variable as the other interpreters on Mac OS X (perl, python, ruby MRI). -- Ticket URL: <http://www.macruby.org/trac/ticket/729#comment:5> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby