Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Darwin][Driver][clang] Prioritise command line flags over `DEFAULT_S…
…YSROOT` If a toolchain is configured with `DEFAULT_SYSROOT`, then this could result in an unintended value for `-syslibroot` being passed to the linker if the user manually sets `-isysroot` or `SDKROOT`. Let's fix this by prioritising command line flags when determining `-syslibroot` before checking `getSysRoot`. Downstream bug report: Homebrew/homebrew-core#197277 Co-authored-by: Bo Anderson <[email protected]>
- Loading branch information