Skip to content

Commit

Permalink
adaptivecpp: fix build failure caused by hardening and update to ROCm 6
Browse files Browse the repository at this point in the history
  • Loading branch information
blenderfreaky committed Dec 4, 2024
1 parent 02cd682 commit 9b8a713
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/development/compilers/adaptivecpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
makeWrapper,
config,
cudaPackages,
rocmPackages_5,
rocmPackages_6,
ompSupport ? true,
openclSupport ? false,
rocmSupport ? config.rocmSupport,
Expand All @@ -21,7 +21,7 @@
let
inherit (llvmPackages) stdenv;
# move to newer ROCm version once supported
rocmPackages = rocmPackages_5;
rocmPackages = rocmPackages_6;
llvmPackages = llvmPackages_17;
lld = lld_17;
in
Expand Down Expand Up @@ -76,6 +76,9 @@ stdenv.mkDerivation rec {
(lib.cmakeBool "WITH_OPENCL_BACKEND" openclSupport)
];

# this hardening option breaks rocm builds
hardeningDisable = [ "zerocallusedregs" ];

postFixup =
''
wrapProgram $out/bin/syclcc-clang \
Expand Down

0 comments on commit 9b8a713

Please sign in to comment.