瀏覽代碼

[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
Michael Liao 5 年之前
父節點
當前提交
92bf0539a1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Tooling/Tooling.cpp

+ 1 - 1
lib/Tooling/Tooling.cpp

@@ -105,7 +105,7 @@ static const llvm::opt::ArgStringList *getCC1Arguments(
         // tooling will consider host-compilation only. For tooling on device
         // tooling will consider host-compilation only. For tooling on device
         // compilation, device compilation only option, such as
         // compilation, device compilation only option, such as
         // `--cuda-device-only`, needs specifying.
         // `--cuda-device-only`, needs specifying.
-        assert(Actions.size() == 2);
+        assert(Actions.size() > 1);
         assert(
         assert(
             isa<driver::CompileJobAction>(Actions.front()) ||
             isa<driver::CompileJobAction>(Actions.front()) ||
             // On MacOSX real actions may end up being wrapped in
             // On MacOSX real actions may end up being wrapped in