diff options
author | Ryan Burns <rtburns@protonmail.com> | 2021-01-26 02:32:59 -0800 |
---|---|---|
committer | Ryan Burns <rtburns@protonmail.com> | 2021-01-26 02:32:59 -0800 |
commit | 44c46905b9478faf86e263b591077c18ad4b9b34 (patch) | |
tree | 0c68e71483c3ce604c71ead4c06d388618fd3cc9 /pkgs/development/compilers | |
parent | 38e23aeda3f799b9f110f20d795167d54d56a03d (diff) |
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
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/llvm/rocm/clang.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/rocm/clang.nix b/pkgs/development/compilers/llvm/rocm/clang.nix index 789d4c055eb0..6ab0f894ca9c 100644 --- a/pkgs/development/compilers/llvm/rocm/clang.nix +++ b/pkgs/development/compilers/llvm/rocm/clang.nix @@ -56,6 +56,11 @@ stdenv.mkDerivation rec { echo "$VCSVersion" > lib/Basic/VCSVersion.inc ''; + passthru = { + isClang = true; + inherit llvm; + }; + meta = with lib; { description = "ROCm fork of the clang C/C++/Objective-C/Objective-C++ LLVM compiler frontend"; homepage = "https://llvm.org/"; |