Skip to content

Commit

Permalink
test linking to /opt/homebrew/lib instead
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Oct 3, 2024
1 parent 6460ffe commit 57d4e5d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions testament/important_packages.nim
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ pkg "netty"
pkg "nico", allowFailure = true
pkg "nicy", "nim c -r src/nicy.nim"
when defined(osx):
# gives "could not load: libgtk-3.0.dylib" on macos 13
# just test compiling instead of running
pkg "nigui", "nim c -o:niguii src/nigui.nim"
pkg "nigui", "nim c --clibdir:/opt/homebrew/lib -o:niguii -r src/nigui.nim"
else:
pkg "nigui", "nim c -o:niguii -r src/nigui.nim"
pkg "nimcrypto", "nim r --path:. tests/testall.nim" # `--path:.` workaround needed, see D20210308T165435
Expand Down
2 changes: 2 additions & 0 deletions tests/closure/tboehmdeepcopy.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
when defined(osx):
switch("clibdir", "/opt/homebrew/lib")
1 change: 0 additions & 1 deletion tests/cpp/temitlist.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ discard """
output: '''
6.0
0'''
#disabled: "windows" # pending bug #18011
"""

# bug #4730
Expand Down
1 change: 0 additions & 1 deletion tests/cpp/tempty_generic_obj.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ discard """
output: '''
int
float'''
#disabled: "windows" # pending bug #18011
"""

import typetraits
Expand Down
2 changes: 0 additions & 2 deletions tests/cpp/tmanual_exception.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
discard """
# doesn't work on macos 13 seemingly due to libc++ linking issue https://stackoverflow.com/a/77375947
disabled: osx
targets: cpp
"""

Expand Down
2 changes: 2 additions & 0 deletions tests/cpp/tmanual_exception.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
when defined(osx):
switch("clibdir", "/opt/homebrew/lib")
2 changes: 2 additions & 0 deletions tests/dll/config.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
when defined(osx):
switch("clibdir", "/opt/homebrew/lib")
2 changes: 2 additions & 0 deletions tests/gc/config.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
when defined(osx):
switch("clibdir", "/opt/homebrew/lib")

0 comments on commit 57d4e5d

Please sign in to comment.