mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-05 17:13:36 +08:00
AMBuild: fix --targets being ignored
This commit is contained in:
parent
c489fe84ba
commit
9e5b0edaa2
@ -30,7 +30,12 @@ class SDKConfig(object):
|
|||||||
self.targets = []
|
self.targets = []
|
||||||
self.target_archs = set()
|
self.target_archs = set()
|
||||||
|
|
||||||
for arch in ['x86', 'x86_64']:
|
if builder.options.targets:
|
||||||
|
target_archs = builder.options.targets.split(',')
|
||||||
|
else:
|
||||||
|
target_archs = ['x86', 'x86_64']
|
||||||
|
|
||||||
|
for arch in target_archs:
|
||||||
try:
|
try:
|
||||||
cxx = builder.DetectCxx(target_arch = arch)
|
cxx = builder.DetectCxx(target_arch = arch)
|
||||||
self.target_archs.add(cxx.target.arch)
|
self.target_archs.add(cxx.target.arch)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user