Fix for OSX compiler bug

This commit is contained in:
rdb 2009-07-15 16:35:45 +00:00
parent c8721364ab
commit b7243bcbd8

View File

@ -487,8 +487,9 @@ printStatus("Makepanda Initial Status Report", WARNINGS)
########################################################################
def BracketNameWithQuotes(name):
# Workaround for OSX bug - compiler doesn't like quoted "-framework Blah" there.
# Workaround for OSX bug - compiler doesn't like those flags quoted.
if (name.startswith("-framework")): return name
if (name.startswith("-dylib_file")): return name
# Account for quoted name (leave as is) but quote everything else (e.g., to protect spaces within paths from improper parsing)
if (name.startswith('"') and name.endswith('"')): return name