Skip to content

Commit e767873

Browse files
committed
[ClangImporter] Explicitly enable cx16 on every platform
1 parent aa0aa5b commit e767873

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,8 +781,9 @@ importer::addCommonInvocationArguments(
781781
invocationArgStrs.push_back("-march=z13");
782782
}
783783

784-
if (triple.isOSLinux() && triple.getArch() == llvm::Triple::x86_64) {
785-
// Enable double wide atomic intrinsics for x86_64 archs on Linux.
784+
if (triple.getArch() == llvm::Triple::x86_64) {
785+
// Enable double wide atomic intrinsics on every x86_64 target.
786+
// (This is the default on Darwin, but not so on other platforms.)
786787
invocationArgStrs.push_back("-mcx16");
787788
}
788789

0 commit comments

Comments
 (0)