forked from nim-works/nimskull
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move linker options testing into a separate test
only tests on linux, but that should provide at least some coverage
- Loading branch information
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
discard """ | ||
description: "Test for `std/compilesettings` querying of linker options" | ||
matrix: "--passl:'-Xlinker --defsym -Xlinker dummysymboldoesnotexist=0x0'" | ||
joinable: false | ||
disabled: windows | ||
disabled: osx | ||
""" | ||
|
||
# finding a "no-op" like cross-platform linker option turned out to be a pain, | ||
# so doing some basic testing on linux at least. | ||
|
||
import std/[strutils, compilesettings] | ||
from std/os import fileExists, `/` | ||
|
||
template main = | ||
doAssert "-Xlinker --defsym -Xlinker dummysymboldoesnotexist=0x0" in | ||
querySetting(linkOptions) | ||
|
||
static: main() | ||
main() |