Remove force-host and explain no-prefer-dynamic

This commit is contained in:
Philipp Hansch 2019-04-08 21:23:39 +02:00
parent 547c5c0667
commit 3ab8038450
No known key found for this signature in database
GPG key ID: 82AA61CAA11397E6

View file

@ -1,5 +1,8 @@
// force-host
// no-prefer-dynamic
// ^ compiletest by default builds all aux files as dylibs, but we don't want that for proc-macro
// crates. If we don't set this, compiletest will override the `crate_type` attribute below and
// compile this as dylib. Removing this then causes the test to fail because a `dylib` crate can't
// contain a proc-macro.
#![feature(repr128)]
#![crate_type = "proc-macro"]