Skip to content

Commit

Permalink
fix for macos and windows compiler tool chains
Browse files Browse the repository at this point in the history
my silly linker options are not appreciated on those platforms, it's
sufficient to test this on linux only as there is nothing really platfrom
specific about this code.
  • Loading branch information
saem committed Feb 9, 2024
1 parent 2b0ed17 commit 5c121c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/vm/tcompilesetting.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ template main =
doAssert querySetting(backend) == "c"
doAssert fileExists(libPath.querySetting / "system.nim")
doAssert "-fmax-errors=4" in querySetting(compileOptions)
doAssert "-u dummysymboldoesnotexist" in querySetting(linkOptions), querySetting(linkOptions)
when not defined(macos) and not defined(windows):
doAssert "-u dummysymboldoesnotexist" in querySetting(linkOptions)

static: main()
main()

0 comments on commit 5c121c0

Please sign in to comment.