Allow UniversalArchs variable to be overridden on a per-config basis.

llvm-svn: 93816
This commit is contained in:
Daniel Dunbar 2010-01-19 00:01:15 +00:00
parent 4c43c2bc73
commit bdf248d13a
2 changed files with 5 additions and 3 deletions

View File

@ -136,7 +136,9 @@ $(call Set,Tmp.ObjPath,$(ProjObjRoot)/$(Tmp.Name)/$(Tmp.Config))
# not.
$(call Set,Tmp.ArchsToBuild,\
$(if $(call IsDefined,$(Tmp.Key).UniversalArchs),\
$($(Tmp.Key).UniversalArchs),\
$(strip \
$(or $($(Tmp.Key).UniversalArchs.$(Tmp.Config)),\
$($(Tmp.Key).UniversalArchs))),\
$(call VarOrDefault,$(Tmp.Key).Arch.$(Tmp.Config),$($(Tmp.Key).Arch))))
# Copy or lipo to create the per-config library.

View File

@ -3,8 +3,8 @@
# This should be included following 'lib_util.mk'.
# The simple variables configurations can define.
PlainConfigVariables := Configs UniversalArchs Description
PerConfigVariables := Arch $(AvailableOptions)
PlainConfigVariables := Configs Description
PerConfigVariables := UniversalArchs Arch $(AvailableOptions)
RequiredConfigVariables := Configs Description
###