Plain Core Duo can't execute 64 bit code
This commit is contained in:
parent
c6d98678ac
commit
4d940628cc
@ -37,6 +37,9 @@ require 'hardware'
|
|||||||
MACOS_VERSION=$1.to_f
|
MACOS_VERSION=$1.to_f
|
||||||
ENV['MACOSX_DEPLOYMENT_TARGET']=$1
|
ENV['MACOSX_DEPLOYMENT_TARGET']=$1
|
||||||
|
|
||||||
|
# to be consistent with cflags, we ignore the existing environment
|
||||||
|
ENV['LDFLAGS']=""
|
||||||
|
|
||||||
cflags=%w[-O3]
|
cflags=%w[-O3]
|
||||||
|
|
||||||
# optimise all the way to eleven, references:
|
# optimise all the way to eleven, references:
|
||||||
@ -46,12 +49,12 @@ cflags=%w[-O3]
|
|||||||
if MACOS_VERSION >= 10.6
|
if MACOS_VERSION >= 10.6
|
||||||
case Hardware.intel_family
|
case Hardware.intel_family
|
||||||
when :penryn, :core2
|
when :penryn, :core2
|
||||||
cflags<<"-march=core2"
|
# no need to add -mfpmath when you specify -m64
|
||||||
|
cflags<<"-march=core2"<<'-m64'
|
||||||
|
ENV['LDFLAGS']="-arch x86_64"
|
||||||
when :core
|
when :core
|
||||||
cflags<<"-march=prescott"
|
cflags<<"-march=prescott"<<"-mfpmath=sse"
|
||||||
end
|
end
|
||||||
ENV['LDFLAGS']="-arch x86_64"
|
|
||||||
cflags<<"-m64"
|
|
||||||
else
|
else
|
||||||
case Hardware.intel_family
|
case Hardware.intel_family
|
||||||
when :penryn, :core2
|
when :penryn, :core2
|
||||||
@ -59,8 +62,6 @@ else
|
|||||||
when :core
|
when :core
|
||||||
cflags<<"-march=prescott"
|
cflags<<"-march=prescott"
|
||||||
end
|
end
|
||||||
# to be consistent with cflags, we ignore the existing environment
|
|
||||||
ENV['LDFLAGS']=""
|
|
||||||
cflags<<"-mfpmath=sse"
|
cflags<<"-mfpmath=sse"
|
||||||
# gcc 4.0 is the default on Leopard
|
# gcc 4.0 is the default on Leopard
|
||||||
ENV['CC']="gcc-4.2"
|
ENV['CC']="gcc-4.2"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user