Skip to content

Commit 8583291

Browse files
committed
[libc] Do not install to the default triple in GPU mode
Currently this logic causes the `libcgpu.a` to be installed to the user's default triple. The GPU target isn't really true to this in a cross-compiling sense so we should just default to the regular `/lib` directory Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D142774
1 parent 057a2c2 commit 8583291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/lib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set_target_properties(
1111

1212
if(LIBC_TARGET_TRIPLE)
1313
set(LIBC_INSTALL_LIBRARY_DIR lib${LLVM_LIBDIR_SUFFIX}/${LIBC_TARGET_TRIPLE})
14-
elseif(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
14+
elseif(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT LIBC_GPU_BUILD)
1515
set(LIBC_INSTALL_LIBRARY_DIR
1616
lib${LLVM_LIBDIR_SUFFIX}/${LLVM_DEFAULT_TARGET_TRIPLE})
1717
else()

0 commit comments

Comments
 (0)