[tooling] Relax an assert when multiple GPU targets are specified.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375245 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp
index 60d4dce..1d6a968 100644
--- a/lib/Tooling/Tooling.cpp
+++ b/lib/Tooling/Tooling.cpp
@@ -105,7 +105,7 @@
// tooling will consider host-compilation only. For tooling on device
// compilation, device compilation only option, such as
// `--cuda-device-only`, needs specifying.
- assert(Actions.size() == 2);
+ assert(Actions.size() > 1);
assert(
isa<driver::CompileJobAction>(Actions.front()) ||
// On MacOSX real actions may end up being wrapped in