From 6aa40b6f21ae10a41001ec2d10b3ccf7f21c5dcb Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Fri, 28 Oct 2016 14:12:13 +0530 Subject: [PATCH] hipcc: Update flags for Fedora support Change-Id: I90be7768410e491b4f11c3b0f08470246d781d80 [ROCm/hip commit: 6fa9bc3b61d1d78a3414511fd658281399d27165] --- projects/hip/bin/hipcc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index 2f3cd46c62..f5692e6fca 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -116,9 +116,16 @@ if ($HIP_PLATFORM eq "hcc") { } else { $HIPLDFLAGS .= " -Wl,--defsym=_binary_kernel_spir_end=1 -Wl,--defsym=_binary_kernel_spir_start=1 -Wl,--defsym=_binary_kernel_cl_start=1 -Wl,--defsym=_binary_kernel_cl_end=1"; } + if ($HOST_OSNAME eq "fedora") { + $HIPCXXFLAGS .= " -I/usr/local/include/c++/v1"; + } # Satisfy HCC dependencies - $HIPLDFLAGS .= " -lc++abi -lsupc++"; + if ($HOST_OSNAME eq "fedora") { + $HIPLDFLAGS .= " -lc++abi"; + } else { + $HIPLDFLAGS .= " -lc++abi -lsupc++"; + } $HIPLDFLAGS .= " -L$HSA_PATH/lib -L$ROCM_PATH/lib -lhsa-runtime64 -lhc_am -lhsakmt"; # Handle ROCm target platform