]> git.lizzy.rs Git - rust.git/commitdiff
Avoid running test on Windows platforms
authorSeth Pellegrino <seth@codecopse.net>
Wed, 8 Jul 2020 16:48:15 +0000 (09:48 -0700)
committerSeth Pellegrino <seth@codecopse.net>
Wed, 8 Jul 2020 16:48:15 +0000 (09:48 -0700)
There don't seem to be any other compiletests that are 1) building a standalone "no_core" create and then 2) trying to link against it. There seems to be a platform-specific limitation in doing so:

```
2020-07-08T16:07:42.9419409Z   = note:    Creating library D:\a\rust\rust\build\i686-pc-windows-msvc\test\rustdoc\intra-link-prim-methods-external-core\auxiliary\my_core.dll.lib and object D:\a\rust\rust\build\i686-pc-windows-msvc\test\rustdoc\intra-link-prim-methods-external-core\auxiliary\my_core.dll.exp
2020-07-08T16:07:42.9419810Z           LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
2020-07-08T16:07:42.9420032Z           D:\a\rust\rust\build\i686-pc-windows-msvc\test\rustdoc\intra-link-prim-methods-external-core\auxiliary\my_core.dll : fatal error LNK1120: 1 unresolved externals
```

Possibly this could be resolved by adding a `__DllMainCRTStartup` or `__DllMainCRTStartup@12` symbol in an architecture- and platform-specific way.

src/test/rustdoc/intra-link-prim-methods-external-core.rs

index b9bdd86ecc56bf279a91678b5453723554a7b22a..e09d36594edf996f665559ed3524f0a7f3c31574 100644 (file)
@@ -1,6 +1,7 @@
 // aux-build:my-core.rs
 // build-aux-docs
 // ignore-cross-compile
+// ignore-windows
 // ignore-tidy-linelength
 
 #![deny(intra_doc_link_resolution_failure)]