We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da69147 commit 0735537Copy full SHA for 0735537
flang-rt/cmake/modules/GetToolchainDirs.cmake
@@ -32,17 +32,17 @@
32
# added unconditionally to the library search path by
33
# ToolChain::getArchSpecificLibPaths(...).
34
function (get_toolchain_library_subdir outvar)
35
- if (NOT APPLE)
36
- set(outval "lib")
37
- else ()
+ set(outval "lib")
+
+ if (APPLE)
38
# Required to be "darwin" for MachO toolchain.
39
get_toolchain_os_dirname(os_dirname)
40
- set(outval "lib/${os_dirname}")
+ set(outval "${outval}/${os_dirname}")
41
+ else ()
42
+ get_toolchain_arch_dirname(arch_dirname)
43
+ set(outval "${outval}/${arch_dirname}")
44
endif ()
45
- get_toolchain_arch_dirname(arch_dirname)
- set(outval "lib/${arch_dirname}")
-
46
set(${outvar} "${outval}" PARENT_SCOPE)
47
endfunction ()
48
0 commit comments