MaskRay wrote:

>  If there happens to be a linker flag present on a precompiled header 
> compilation then clang will output an error: clang -x c++-header test.h -lm 
> -o test.h.pch
> clang: error: cannot specify -o when generating multiple output files

There will be warning, which I think is expected. I don't see `cannot specify 
-o when generating multiple output files`
```
% clang -x c++-header -c a.h -lm -o a.pch
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
```

https://github.com/llvm/llvm-project/pull/213164
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to