Add WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET

This commit is contained in:
Nigel Tao committed 2021-03-17 12:03:06 +11:00
1 parent 073d3e0150
commit 9914f7314d
6 files changed
+83 -65

No files matched your search

+2 -1
View File
@@ -277,7 +277,8 @@ func cpuArchCNames(asserts []*a.Node) (caMacro string, caName string, caAttribut
caMacro, caName, caAttribute = "ARM_NEON", "arm_neon", ""
case t.IDX86SSE42:
caMacro, caName, caAttribute =
"X86_64", "x86_sse42", "__attribute__((target(\"pclmul,popcnt,sse4.2\")))"
"X86_64", "x86_sse42",
"WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET(\"pclmul,popcnt,sse4.2\")"
}
}
}