diff --git a/tools/amd_build/build_amd.py b/tools/amd_build/build_amd.py index 43305ecfe8b..e74b95d0c82 100755 --- a/tools/amd_build/build_amd.py +++ b/tools/amd_build/build_amd.py @@ -145,13 +145,11 @@ ignores = [os.path.join(proj_dir, ignore) for ignore in ignores] # Check if the compiler is hip-clang. +# +# This used to be a useful function but now we can safely always assume hip-clang. +# Leaving the function here avoids bc-linter errors. def is_hip_clang() -> bool: - try: - hip_path = os.getenv("HIP_PATH", "/opt/rocm/hip") - with open(hip_path + "/lib/.hipInfo") as f: - return "HIP_COMPILER=clang" in f.read() - except OSError: - return False + return True # TODO Remove once the following submodules are updated