There was an error while loading. Please reload this page.
1 parent c723ad4 commit 2d99859Copy full SHA for 2d99859
1 file changed
plinth-build.sh
@@ -253,6 +253,10 @@ DEST_UPLC_GHC="$BASE/_build/stage1/bin/uplc-ghc${EXE_EXT}"
253
( cd "$dir/bin" && ln -sf "uplc-ghc-$VERSION" "uplc-ghc" )
254
fi
255
256
+ # Add wrapper scripts so `make install` creates $PREFIX/bin/uplc-ghc
257
+ echo 'exec "$executablename" -B"$libdir" ${1+"$@"}' > "$dir/wrappers/uplc-ghc-$VERSION"
258
+ ( cd "$dir/wrappers" && ln -sf "uplc-ghc-$VERSION" "uplc-ghc" )
259
+
260
# remove the boot GHC from the bindist
261
rm -f "$dir"/bin/ghc
262
rm -f "$dir"/bin/ghc.exe
0 commit comments