compiletest does not pass --extern
flags
#53737
Labels
A-compiletest
Area: The compiletest test runner
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
In #51456, @qmx and I noticed that compiletest, when using aux-build libraries, simply supplies the compiler with
-L
instead of using the--extern lib_name=path-to-rlib
compiler argument form. This is a shame because the latter form is what cargo actually uses in practice!We ought to add another comment form to use the latter. Something like:
or perhaps a different header name.
(We could also retrofit the existing
aux-build
to use--extern
, but it seems useful to be able to test in both modes, actually, so I'd prefer to add something new.)The text was updated successfully, but these errors were encountered: