From 5c121c01436e08091899c8c427f9ab2bf317c9a9 Mon Sep 17 00:00:00 2001 From: Saem Ghani Date: Fri, 9 Feb 2024 15:18:20 -0800 Subject: [PATCH] fix for macos and windows compiler tool chains 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. --- tests/vm/tcompilesetting.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/vm/tcompilesetting.nim b/tests/vm/tcompilesetting.nim index b8a988b7d22..cbfc368f4de 100644 --- a/tests/vm/tcompilesetting.nim +++ b/tests/vm/tcompilesetting.nim @@ -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()