Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions toolchain-linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,14 @@ if (NOT DEFINED ENV{CXX} AND NOT CMAKE_CXX_COMPILER)
set(CMAKE_CXX_COMPILER "${rocm_bin}/hipcc")
endif()

if (NOT DEFINED ENV{CC} AND NOT CMAKE_C_COMPILER)
set(CMAKE_C_COMPILER "${rocm_bin}/hipcc")
endif()

if (NOT DEFINED ENV{FC} AND NOT CMAKE_Fortran_COMPILER)
set(CMAKE_Fortran_COMPILER "gfortran")
endif()

# relying on path for backward compatibility
# set(CMAKE_CXX_COMPILER "${rocm_bin}/hipcc")
# set(CMAKE_C_COMPILER "${rocm_bin}/hipcc")

if (CONFIG_NO_COMPILER_CHECKS)
set(CMAKE_CXX_COMPILER_WORKS 1)
set(CMAKE_C_COMPILER_WORKS 1)
set(CMAKE_Fortran_COMPILER_WORKS 1)
endif()
2 changes: 0 additions & 2 deletions toolchain-windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ else()
endif()

set(CMAKE_CXX_COMPILER "${rocm_bin}/clang++.exe")
set(CMAKE_C_COMPILER "${rocm_bin}/clang.exe")

if (NOT python)
set(python "python") # take default for windows
Expand All @@ -23,7 +22,6 @@ endif()
#set(CMAKE_Fortran_PREPROCESS_SOURCE "<CMAKE_Fortran_COMPILER> -E <INCLUDES> <FLAGS> -cpp <SOURCE> -o <PREPROCESSED_SOURCE>")

# TODO remove, just to speed up slow cmake
#set(CMAKE_C_COMPILER_WORKS 1)
#set(CMAKE_CXX_COMPILER_WORKS 1)
#set(CMAKE_Fortran_COMPILER_WORKS 1)

Expand Down