From 44c46905b9478faf86e263b591077c18ad4b9b34 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Tue, 26 Jan 2021 02:32:59 -0800 Subject: [PATCH] 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 --- pkgs/development/compilers/llvm/rocm/clang.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/llvm/rocm/clang.nix b/pkgs/development/compilers/llvm/rocm/clang.nix index 789d4c055eb..6ab0f894ca9 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/";