|
@@ -106,7 +106,12 @@ static const llvm::opt::ArgStringList *getCC1Arguments(
|
|
|
// compilation, device compilation only option, such as
|
|
|
// `--cuda-device-only`, needs specifying.
|
|
|
assert(Actions.size() == 2);
|
|
|
- assert(isa<driver::CompileJobAction>(Actions.front()));
|
|
|
+ assert(
|
|
|
+ isa<driver::CompileJobAction>(Actions.front()) ||
|
|
|
+ // On MacOSX real actions may end up being wrapped in
|
|
|
+ // BindArchAction.
|
|
|
+ (isa<driver::BindArchAction>(Actions.front()) &&
|
|
|
+ isa<driver::CompileJobAction>(*Actions.front()->input_begin())));
|
|
|
OffloadCompilation = true;
|
|
|
break;
|
|
|
}
|