From 87095f6a283d95016f66f4a14a3da923c394877c Mon Sep 17 00:00:00 2001 From: Cheng Shao Date: Wed, 5 Apr 2023 03:13:27 +0000 Subject: rts: always build 64-bit atomic ops This patch does a few things: - Always build 64-bit atomic ops in rts/ghc-prim, even on 32-bit platforms - Remove legacy "64bit" cabal flag of rts package - Fix hs_xchg64 function prototype for 32-bit platforms - Fix AtomicFetch test for wasm32 --- hadrian/src/Rules/Generate.hs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'hadrian/src') diff --git a/hadrian/src/Rules/Generate.hs b/hadrian/src/Rules/Generate.hs index fea40d6fb0..de4369d4f8 100644 --- a/hadrian/src/Rules/Generate.hs +++ b/hadrian/src/Rules/Generate.hs @@ -295,11 +295,6 @@ rtsCabalFlags = mconcat , flag "CabalUseSystemLibFFI" UseSystemFfi , flag "CabalLibffiAdjustors" UseLibffiForAdjustors , flag "CabalLeadingUnderscore" LeadingUnderscore - , interpolateVar "Cabal64bit" $ do - let settingWord :: Setting -> Action Word - settingWord s = read <$> setting s - ws <- settingWord TargetWordSize - return $ toCabalBool (ws == 8) ] where flag = interpolateCabalFlag -- cgit v1.2.1