File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ include(GetToolchainDirs)
6868include (FlangCommon)
6969include (HandleCompilerRT)
7070include (ExtendPath)
71- include (GNUInstallDirs)
7271
7372
7473############################
@@ -110,9 +109,9 @@ else ()
110109 # be installed there using the same prefix. This is to not have a difference
111110 # between bootstrap and standalone runtimes builds.
112111 set (FLANG_RT_OUTPUT_RESOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR} " )
113- set (FLANG_RT_INSTALL_RESOURCE_PATH "${CMAKE_INSTALL_LIBDIR} /clang/${LLVM_VERSION_MAJOR} " )
112+ set (FLANG_RT_INSTALL_RESOURCE_PATH "lib /clang/${LLVM_VERSION_MAJOR} " )
114113
115- extend_path(FLANG_RT_OUTPUT_RESOURCE_LIB_DIR "${FLANG_RT_OUTPUT_RESOURCE_DIR} " "${CMAKE_INSTALL_LIBDIR} " )
114+ extend_path(FLANG_RT_OUTPUT_RESOURCE_LIB_DIR "${FLANG_RT_OUTPUT_RESOURCE_DIR} " "lib " )
116115endif ()
117116extend_path(FLANG_RT_INSTALL_RESOURCE_LIB_PATH "${FLANG_RT_INSTALL_RESOURCE_PATH} " "${toolchain_lib_subdir} " )
118117cmake_path(NORMAL_PATH FLANG_RT_OUTPUT_RESOURCE_DIR)
Original file line number Diff line number Diff line change 66#
77#===------------------------------------------------------------------------===#
88
9- include (GNUInstallDirs)
10-
119
1210# Determine the subdirectory relative to Clang's resource dir/sysroot where to
1311# install target-specific libraries, to be found by Clang/Flang driver. This was
@@ -35,15 +33,15 @@ include(GNUInstallDirs)
3533# ToolChain::getArchSpecificLibPaths(...).
3634function (get_toolchain_library_subdir outvar)
3735 if (NOT APPLE )
38- set (outval "${CMAKE_INSTALL_LIBDIR} " )
36+ set (outval "lib " )
3937 else ()
4038 # Required to be "darwin" for MachO toolchain.
4139 get_toolchain_os_dirname(os_dirname)
42- set (outval "${CMAKE_INSTALL_LIBDIR} /${os_dirname} " )
40+ set (outval "lib /${os_dirname} " )
4341 endif ()
4442
4543 get_toolchain_arch_dirname(arch_dirname)
46- set (outval "${CMAKE_INSTALL_LIBDIR} /${arch_dirname} " )
44+ set (outval "lib /${arch_dirname} " )
4745
4846 set (${outvar} "${outval} " PARENT_SCOPE)
4947endfunction ()
You can’t perform that action at this time.
0 commit comments