Skip to content

Commit 013a1b4

Browse files
authored
Merge pull request #1804 from guibou/ghc94_pgml
feat: use pgml-supports-no-pie with GHC 9.4
2 parents 9d3b319 + e109612 commit 013a1b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

haskell/cc.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ def ghc_cc_program_args(hs, cc, ld):
219219
cc + " -E -undef -traditional",
220220
"-optc-fno-stack-protector",
221221
]
222-
if hs.toolchain.numeric_version >= [8, 10, 3]:
222+
if hs.toolchain.numeric_version >= [9, 4, 1]:
223+
args.append("-pgml-supports-no-pie")
224+
elif hs.toolchain.numeric_version >= [8, 10, 3]:
223225
args.append("-pgmc-supports-no-pie")
224226
if hs.toolchain.numeric_version >= [9, 0, 1]:
225227
args.extend([

0 commit comments

Comments
 (0)