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)
68
68
include (FlangCommon )
69
69
include (HandleCompilerRT )
70
70
include (ExtendPath )
71
- include (GNUInstallDirs )
72
71
73
72
74
73
############################
@@ -110,9 +109,9 @@ else ()
110
109
# be installed there using the same prefix. This is to not have a difference
111
110
# between bootstrap and standalone runtimes builds.
112
111
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} " )
114
113
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 " )
116
115
endif ()
117
116
extend_path (FLANG_RT_INSTALL_RESOURCE_LIB_PATH "${FLANG_RT_INSTALL_RESOURCE_PATH} " "${toolchain_lib_subdir} " )
118
117
cmake_path (NORMAL_PATH FLANG_RT_OUTPUT_RESOURCE_DIR )
Original file line number Diff line number Diff line change 6
6
#
7
7
#===------------------------------------------------------------------------===#
8
8
9
- include (GNUInstallDirs )
10
-
11
9
12
10
# Determine the subdirectory relative to Clang's resource dir/sysroot where to
13
11
# install target-specific libraries, to be found by Clang/Flang driver. This was
@@ -35,15 +33,15 @@ include(GNUInstallDirs)
35
33
# ToolChain::getArchSpecificLibPaths(...).
36
34
function (get_toolchain_library_subdir outvar )
37
35
if (NOT APPLE )
38
- set (outval "${CMAKE_INSTALL_LIBDIR} " )
36
+ set (outval "lib " )
39
37
else ()
40
38
# Required to be "darwin" for MachO toolchain.
41
39
get_toolchain_os_dirname (os_dirname )
42
- set (outval "${CMAKE_INSTALL_LIBDIR} /${os_dirname} " )
40
+ set (outval "lib /${os_dirname} " )
43
41
endif ()
44
42
45
43
get_toolchain_arch_dirname (arch_dirname )
46
- set (outval "${CMAKE_INSTALL_LIBDIR} /${arch_dirname} " )
44
+ set (outval "lib /${arch_dirname} " )
47
45
48
46
set (${outvar} "${outval} " PARENT_SCOPE )
49
47
endfunction ()
You can’t perform that action at this time.
0 commit comments