mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Don't cross-compile on OSX for the runtime build
This commit is contained in:
parent
ac0992bc87
commit
60499275aa
@ -578,7 +578,7 @@ def CompileCxx(obj,src,opts):
|
|||||||
for (opt,var,val) in DEFSYMBOLS:
|
for (opt,var,val) in DEFSYMBOLS:
|
||||||
if (opt=="ALWAYS") or (opts.count(opt)): cmd += ' -D' + var + '=' + val
|
if (opt=="ALWAYS") or (opts.count(opt)): cmd += ' -D' + var + '=' + val
|
||||||
for x in ipath: cmd += ' -I' + x
|
for x in ipath: cmd += ' -I' + x
|
||||||
if (sys.platform == "darwin"):
|
if (sys.platform == "darwin" and not RUNTIME):
|
||||||
if (int(platform.mac_ver()[0][3]) >= 6):
|
if (int(platform.mac_ver()[0][3]) >= 6):
|
||||||
cmd += " -isysroot " + SDK["MACOSX"] + " -arch x86_64"
|
cmd += " -isysroot " + SDK["MACOSX"] + " -arch x86_64"
|
||||||
else:
|
else:
|
||||||
@ -814,7 +814,7 @@ def CompileLink(dll, obj, opts):
|
|||||||
cmd += " -lpthread"
|
cmd += " -lpthread"
|
||||||
if (not sys.platform.startswith("freebsd")):
|
if (not sys.platform.startswith("freebsd")):
|
||||||
cmd += " -ldl"
|
cmd += " -ldl"
|
||||||
if (sys.platform == "darwin"):
|
if (sys.platform == "darwin" and not RUNTIME):
|
||||||
cmd += " -isysroot " + SDK["MACOSX"] + " -Wl,-syslibroot," + SDK["MACOSX"] + " -arch i386"
|
cmd += " -isysroot " + SDK["MACOSX"] + " -Wl,-syslibroot," + SDK["MACOSX"] + " -arch i386"
|
||||||
if ("NOPPC" not in opts): cmd += " -arch ppc"
|
if ("NOPPC" not in opts): cmd += " -arch ppc"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user