Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit cfb2d0e

Browse files
author
Greg Fitzgerald
committed
Fixed llvm-build when no targets are enabled
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206627 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 3a9522f commit cfb2d0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/llvm-build/llvmbuild/main.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,9 @@ def add_magic_target_components(parser, project, opts):
719719
enable_targets = available_targets.values()
720720
else:
721721
# We support both space separated and semi-colon separated lists.
722-
if ' ' in opts.enable_targets:
722+
if opts.enable_targets == '':
723+
enable_target_names = []
724+
elif ' ' in opts.enable_targets:
723725
enable_target_names = opts.enable_targets.split()
724726
else:
725727
enable_target_names = opts.enable_targets.split(';')

0 commit comments

Comments
 (0)