mirror of https://github.com/microsoft/clang.git
Enable .hip files for test/Driver
Partially revert r334128 due to regressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
288c3cd43f
commit
ae25258b2e
|
@ -2809,7 +2809,7 @@ public:
|
|||
C.MakeAction<OffloadUnbundlingJobAction>(HostAction);
|
||||
UnbundlingHostAction->registerDependentActionInfo(
|
||||
C.getSingleOffloadToolChain<Action::OFK_Host>(),
|
||||
/*BoundArch=*/"all", Action::OFK_Host);
|
||||
/*BoundArch=*/StringRef(), Action::OFK_Host);
|
||||
HostAction = UnbundlingHostAction;
|
||||
}
|
||||
|
||||
|
@ -3868,7 +3868,7 @@ InputInfo Driver::BuildJobsForActionNoCache(
|
|||
StringRef Arch;
|
||||
if (TargetDeviceOffloadKind == Action::OFK_HIP) {
|
||||
if (UI.DependentOffloadKind == Action::OFK_Host)
|
||||
Arch = "all";
|
||||
Arch = StringRef();
|
||||
else
|
||||
Arch = UI.DependentBoundArch;
|
||||
} else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
config.suffixes = ['.c', '.cpp', '.h', '.m', '.mm', '.S', '.s', '.f90', '.f95',
|
||||
'.cu', '.rs', '.cl']
|
||||
'.cu', '.rs', '.cl', '.hip']
|
||||
config.substitutions = list(config.substitutions)
|
||||
config.substitutions.insert(0,
|
||||
('%clang_cc1',
|
||||
|
|
Loading…
Reference in New Issue