Skip to content

Commit 7e5d5ee

Browse files
committed
[tooling] Relax an assert when multiple GPU targets are specified.
llvm-svn: 375245
1 parent 77460d3 commit 7e5d5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Tooling/Tooling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static const llvm::opt::ArgStringList *getCC1Arguments(
105105
// tooling will consider host-compilation only. For tooling on device
106106
// compilation, device compilation only option, such as
107107
// `--cuda-device-only`, needs specifying.
108-
assert(Actions.size() == 2);
108+
assert(Actions.size() > 1);
109109
assert(
110110
isa<driver::CompileJobAction>(Actions.front()) ||
111111
// On MacOSX real actions may end up being wrapped in

0 commit comments

Comments
 (0)