Closed
Description
There are a few driver flags missing from flang-new that are needed for selecting components from alternate paths:
flang-new: error: unknown argument: '--gcc-toolchain=/usr/lib/gcc/x86_64-linux-gnu/9'
flang-new: error: unknown argument: '--rocm-path=/opt/rocm'
flang-new: error: unknown argument: '-frtlib-add-rpath'
As clang accepts these, flang-new should as well.
The above can be reproduced with:
$ cat hello.f
program hello
print *, 'Hello World!'
end program hello
$ flang-new hello.f --gcc-toolchain=/usr/lib/gcc/x86_64-linux-gnu/9
flang-new: error: unknown argument: '--gcc-toolchain=/usr/lib/gcc/x86_64-linux-gnu/9'
$ flang-new hello.f --rocm-path=/opt/rocm
flang-new: error: unknown argument: '--rocm-path=/opt/rocm'
$ flang-new hello.f -frtlib-add-rpath
flang-new: error: unknown argument: '-frtlib-add-rpath'