cc #71490 (comment)
For example
-C relocation-model=ropi doesn't make sense outside of some embedded ARM targets
-C target-feature=+crt-static is silently ignored on most targets
-C target-feature=+crt-static is incompatible with -C relocation-model=pic on most targets and +crt-static silently wins (at link time)
Right now rustc behaves more like gcc which silently accepts conflicting options and produces something unspecified, than like clang which tries to produce warnings.
For example, in gcc -shared -pie -pie silently wins, but in clang -shared -pie -shared wins with a warning.
cc #71490 (comment)
For example
-C relocation-model=ropidoesn't make sense outside of some embedded ARM targets-C target-feature=+crt-staticis silently ignored on most targets-C target-feature=+crt-staticis incompatible with-C relocation-model=picon most targets and+crt-staticsilently wins (at link time)Right now rustc behaves more like gcc which silently accepts conflicting options and produces something unspecified, than like clang which tries to produce warnings.
For example, in
gcc -shared -pie-piesilently wins, but inclang -shared -pie-sharedwins with a warning.