Jiahao XU

Results 1312 comments of Jiahao XU

> Would you accept a PR changing the target parsing to be up-front? Yeah I think having a new method calls `from_cargo_build_script_env` makes sense > And would you accept a...

Seems that we can use `clang -O3 -c merged.bc` to do the optimization and codegen, that'd makes things much easier

Thanks I forgot to put `-c` in it, I need to find some time to experiment it on my PC and see if it can do the job

So tested this out and we just need llvm-link: ```bash clang -O3 -flto -c a.c b.c llvm-link a.o b.o -o merged.o clang -O3 -x ir -c merged.o -o final.o ```...

```bash $ clang --version Ubuntu clang version 20.1.2 (Oubuntul) Target: x86_64-pc-Linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm-20/bin ``` For llvm-link, we can use an env var `LLVM_LINK`, or fallback to look...

> > it **is** possible to query clang-cl with `/clang:-print-search-dirs` command line option > > Hmmm, one can actually query it with just `--print-search-dirs`, i.e. with extra dash. And the...

cc @dot-asm opened #1587, would be great if you can have a look please

Thanks, I just want to reference that particular comment as motivation for the PR and deliberately avoiding `fix ...`, but GitHub still thought thar it fixes this issue

To make IPO easier, I think cc-rs should try to use clang as default and only fallback to gcc/cc if clang doesn't exist. Not sure if that'd break something so...

> But it would be inappropriate for cc-rs to panic if clang is unavailable We will fallback to gcc/cc if clang is not found, and we will only allow IPO...