Skip to content
Snippets Groups Projects
Commit 77e91500 authored by Cheng Shao's avatar Cheng Shao Committed by Marge Bot
Browse files

hadrian: distribute jsbits needed for wasm backend's JSFFI support

The post-linker.mjs/prelude.js files are now distributed in the
bindist libdir, so when using the wasm backend's JSFFI feature, the
user wouldn't need to fetch them from a ghc checkout manually.
parent f85f3fdb
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,8 @@ ghcLibDeps stage iplace = do
, "settings"
, "ghc-usage.txt"
, "ghci-usage.txt"
, "post-link.mjs"
, "prelude.js"
]
cxxStdLib <- systemCxxStdLibConfPath (PackageDbLoc stage iplace)
return (cxxStdLib : ps)
......
......@@ -211,6 +211,9 @@ copyRules = do
prefix -/- "ghc-interp.js" <~ return "."
prefix -/- "template-hsc.h" <~ return (pkgPath hsc2hs -/- "data")
prefix -/- "post-link.mjs" <~ pure "utils/jsffi"
prefix -/- "prelude.js" <~ pure "utils/jsffi"
prefix -/- "html/**" <~ return "utils/haddock/haddock-api/resources"
prefix -/- "latex/**" <~ return "utils/haddock/haddock-api/resources"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment