Overriding target specification options

So, I recently switched my kernel to mainly target the x86_64-unknown-none target, but that uses the PIC code model and the boot loader doesn't support that yet (and I don't think I can initialize the GOT in kmain). I tried to override the option in .cargo/config.toml, but it isn't working:

rustflags = ["-C", "relocation-model=pie"]

Is Rustc exclusively overriding anything I set with the built-in definition?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.