[llvm] r206627 - Fixed llvm-build when no targets are enabled
Greg Fitzgerald
gregf at codeaurora.org
Fri Apr 18 10:39:50 PDT 2014
Author: garious
Date: Fri Apr 18 12:39:50 2014
New Revision: 206627
URL: http://llvm.org/viewvc/llvm-project?rev=206627&view=rev
Log:
Fixed llvm-build when no targets are enabled
Modified:
llvm/trunk/utils/llvm-build/llvmbuild/main.py
Modified: llvm/trunk/utils/llvm-build/llvmbuild/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-build/llvmbuild/main.py?rev=206627&r1=206626&r2=206627&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-build/llvmbuild/main.py (original)
+++ llvm/trunk/utils/llvm-build/llvmbuild/main.py Fri Apr 18 12:39:50 2014
@@ -719,7 +719,9 @@ def add_magic_target_components(parser,
enable_targets = available_targets.values()
else:
# We support both space separated and semi-colon separated lists.
- if ' ' in opts.enable_targets:
+ if opts.enable_targets == '':
+ enable_target_names = []
+ elif ' ' in opts.enable_targets:
enable_target_names = opts.enable_targets.split()
else:
enable_target_names = opts.enable_targets.split(';')
More information about the llvm-commits
mailing list