Skip to content

Commit ad2e6ee

Browse files
committed
Merge branch 'issue-1246'
2 parents 4853570 + 838672a commit ad2e6ee

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/scripts/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ binary_test=$(cabal --project-file=cabal.project.release list-bin ghcup-test)
2727
binary_opttest=$(cabal --project-file=cabal.project.release list-bin ghcup-optparse-test)
2828
ver=$("${binary}" --numeric-version)
2929
strip_binary "${binary}"
30+
31+
if [ "${OS}" = "macOS" ] ; then
32+
otool -L "${binary}" | grep libyaml && { echo "undesired libyaml linking" ; exit 5 ; }
33+
fi
34+
3035
cp "${binary}" "out/${ARTIFACT}-${ver}${ext}"
3136
cp "${binary_test}" "out/test-${ARTIFACT}-${ver}${ext}"
3237
cp "${binary_opttest}" "out/test-optparse-${ARTIFACT}-${ver}${ext}"

cabal.project.release

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ optimization: 2
99
package ghcup
1010
flags: +tui
1111

12+
package libyaml-streamly
13+
flags: -system-libyaml
14+
15+
package libyaml
16+
flags: -system-libyaml
17+
1218
if os(linux)
1319
package ghcup
1420
flags: +yaml-streamly

0 commit comments

Comments
 (0)