llvmPackages_rocm.clang: add isClang and llvm passthru
Matches generic clang compilers, and fixes isClang inspection, which
071030840252273acf05c9902458d4db5bdd71ab depends on for the
`--gcc-toolchain` flag to be set up properly.
Fixes rocm-comgr
commit44c46905b9478faf86e263b591077c18ad4b9b34
authorRyan Burns <rtburns@protonmail.com>
dateTue 26 Jan 2021, 02:32 (6 years ago)
parent38e23ae
pkgs/development/compilers/llvm/rocm/clang.nix+5
@@ -56,6 +56,11 @@ stdenv.mkDerivation rec {
5656 echo "$VCSVersion" > lib/Basic/VCSVersion.inc
5757 '';
5858
59+ passthru = {
60+ isClang = true;
61+ inherit llvm;
62+ };
63+
5964 meta = with lib; {
6065 description = "ROCm fork of the clang C/C++/Objective-C/Objective-C++ LLVM compiler frontend";
6166 homepage = "https://llvm.org/";