I took a closer look -- as is tradition, this is a bit of a mess in compiletest. The gist though is that make_compile_args is needed for the preset compiler flags that ui (or other test modes) should respectively get, except we don't properly or explicitly tell apart:
- Compiler flags that should be set for all ui tests (unless overriden), which includes auxiliaries or minicore when built as an auxiliary under the test mode
- Compiler flags that should be set for the current test crate itself, versus auxiliaries, versus minicore
I would say that we probably should not be forwarding compiler flags in the general case (... or provide an opt-out to stop that behavior), because yeah with something like target features, it's not exactly obvious or easy to disable...
Originally posted by @jieyouxu in #147812 (comment)
I took a closer look -- as is tradition, this is a bit of a mess in
compiletest. The gist though is thatmake_compile_argsis needed for the preset compiler flags that ui (or other test modes) should respectively get, except we don't properly or explicitly tell apart:I would say that we probably should not be forwarding compiler flags in the general case (... or provide an opt-out to stop that behavior), because yeah with something like target features, it's not exactly obvious or easy to disable...
Originally posted by @jieyouxu in #147812 (comment)