diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-02-17 00:42:08 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-02-22 06:49:34 +0530 |
commit | 7f1d78f30479170baa749e179c70e85a62250b0f (patch) | |
tree | 0eb8153caeca9b1b05ca9cabdc26a2b56703f3b6 /test cases/common/149 recursive linking | |
parent | be486a2ec84f22052fba5ba16de136de00379966 (diff) | |
download | meson-7f1d78f30479170baa749e179c70e85a62250b0f.zip meson-7f1d78f30479170baa749e179c70e85a62250b0f.tar.gz meson-7f1d78f30479170baa749e179c70e85a62250b0f.tar.bz2 |
tests: Ensure that executable and library are named differently
On Windows, the basename is used to determine the name of the PDB
file. So for a project called myproject, we will create myproject.dll
and myproject.exe, both of which will have myproject.pdb. This is
a file collision. Instead, append `_test`, similar to the C# template.
Fixes AllPlatformTest.test_templates on MSVC. This became a hard error
when we started listing PDBs in the implicit outputs list of ninja
targets.
Do the same for a test that was making the same mistake.
Diffstat (limited to 'test cases/common/149 recursive linking')
-rw-r--r-- | test cases/common/149 recursive linking/3rdorderdeps/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/common/149 recursive linking/3rdorderdeps/meson.build b/test cases/common/149 recursive linking/3rdorderdeps/meson.build index d4ef745..4c5ac73 100644 --- a/test cases/common/149 recursive linking/3rdorderdeps/meson.build +++ b/test cases/common/149 recursive linking/3rdorderdeps/meson.build @@ -41,7 +41,7 @@ foreach dep2 : ['sh', 'st'] main_c = configure_file(input : 'main.c.in', output : name + '-main.c', configuration : cdata) - dep3_bin = executable(name, main_c, link_with : dep3_lib, + dep3_bin = executable(name + '_test', main_c, link_with : dep3_lib, c_args : build_args) test(name + 'test', dep3_bin) endforeach |