diff options
| author | ruki <[email protected]> | 2022-02-08 00:35:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-02-08 00:35:44 +0800 |
| commit | 45cc977dfc486fd4ac1506f351ab0ccc37a72e7b (patch) | |
| tree | 063a900ee70d4d3ea4f754c3cacc84736d82fcfa /tests/projects/c/linker_scripts | |
| parent | 17d633d99e0adc0871b72c6b970349c5d077e3fd (diff) | |
fix tests
Diffstat (limited to 'tests/projects/c/linker_scripts')
| -rw-r--r-- | tests/projects/c/linker_scripts/src/foo.def | 2 | ||||
| -rw-r--r-- | tests/projects/c/linker_scripts/xmake.lua | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/projects/c/linker_scripts/src/foo.def b/tests/projects/c/linker_scripts/src/foo.def new file mode 100644 index 000000000..7e3ffcda0 --- /dev/null +++ b/tests/projects/c/linker_scripts/src/foo.def @@ -0,0 +1,2 @@ +EXPORTS +foo diff --git a/tests/projects/c/linker_scripts/xmake.lua b/tests/projects/c/linker_scripts/xmake.lua index 2396d1b52..51f17f68b 100644 --- a/tests/projects/c/linker_scripts/xmake.lua +++ b/tests/projects/c/linker_scripts/xmake.lua @@ -9,5 +9,9 @@ target("test") target("foo") set_kind("shared") add_files("src/foo.c") - add_files("src/foo.map") + if is_plat("windows") then + add_files("src/foo.def") + else + add_files("src/foo.map") + end |
