Skip to content

Commit 3107b8c

Browse files
committed
Fix: Correct target arch pragmas for Arm
1 parent f1112e2 commit 3107b8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fork_union.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,9 +1433,9 @@ struct arm64_yield_t {
14331433
* or the timeout to expire.
14341434
*/
14351435
#pragma GCC push_options
1436-
#pragma GCC target("+wfxt")
1436+
#pragma GCC target("arch=armv8-a+wfxt")
14371437
#if defined(__clang__)
1438-
#pragma clang attribute push(__attribute__((target("+wfxt"))), apply_to = function)
1438+
#pragma clang attribute push(__attribute__((target("arch=armv8-a+wfxt"))), apply_to = function)
14391439
#endif
14401440

14411441
struct arm64_wfet_t {

0 commit comments

Comments
 (0)