Skip to content

Commit 2debf96

Browse files
committed
export target-platform
1 parent 99be0b1 commit 2debf96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wpc-plugin/src/WPC/GhcStgApp.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ writeGhcStgApp dflags unit_env hpt = do
105105
writeFile (output_fn ++ "." ++ objectSuf dflags ++ "_ghc_stgapp") $ showSDoc dflags $ renderYAML $ JSObject
106106
[ ("ghc-name", JSString . ghcNameVersion_programName $ ue_namever unit_env)
107107
, ("ghc-version", JSString . ghcNameVersion_projectVersion $ ue_namever unit_env)
108+
, ("target-platform", JSString . platformMisc_targetPlatformString $ platformMisc dflags)
108109
, ("platform-os", JSString . stringEncodeOS . platformOS $ targetPlatform dflags)
109110
, ("no-hs-main", JSBool $ gopt Opt_NoHsMain dflags)
110111
, ("o-suffix", JSString $ objectSuf dflags)

0 commit comments

Comments
 (0)