mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00

* Produce MS Coff by default when targetting windows This rebases #12825 but doesn't attempt to rename phobos libraries and doesn't change the build infra where possible(and doesn't have a large diff in `link.d`). See if this fixes the CI issues. * remove OMF piplines * Update glue.d * Update target.d * Update target.d * Update frontend.h
15 lines
524 B
D
15 lines
524 B
D
/*
|
|
REQUIRED_ARGS: -lib
|
|
REQUIRED_ARGS(linux freebsd osx openbsd) fail_compilation/extra-files/fake.a
|
|
REQUIRED_ARGS(windows) -m32 fail_compilation/extra-files/fake.lib
|
|
|
|
Use a regex because the path is really strange on Azure (OMF_32, 64):
|
|
|
|
{{RESULTS_DIR}}\fail_compilation\{{RESULTS_DIR}}\fail_compilation\invalid_omf_0.obj
|
|
|
|
TEST_OUTPUT:
|
|
----
|
|
$r:.*$: Error: corrupt $?:windows=MS Coff|osx=Mach|ELF$ object module $?:windows=fail_compilation\extra-files\fake.lib|fail_compilation/extra-files/fake.a$ $n$
|
|
----
|
|
*/
|
|
void main() {}
|