From 39fd4607d7845c1e096b299555efa0347a193f50 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 15 Jul 2024 11:46:35 -0700 Subject: [PATCH] Try removing -nodefaultlibs --- cmake/wasi-sdk-sysroot.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/wasi-sdk-sysroot.cmake b/cmake/wasi-sdk-sysroot.cmake index 93d02d7d6..4d48ff042 100644 --- a/cmake/wasi-sdk-sysroot.cmake +++ b/cmake/wasi-sdk-sysroot.cmake @@ -166,9 +166,9 @@ function(define_libcxx target) get_property(dir_compile_opts DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY COMPILE_OPTIONS) get_property(dir_link_opts DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY LINK_OPTIONS) - set(extra_cflags_list ${CMAKE_C_FLAGS} ${target_flags} --target=${target} ${dir_compile_opts} ${dir_link_opts} -nodefaultlibs) + set(extra_cflags_list ${CMAKE_C_FLAGS} ${target_flags} --target=${target} ${dir_compile_opts} ${dir_link_opts}) list(JOIN extra_cflags_list " " extra_cflags) - set(extra_cxxflags_list ${CMAKE_CXX_FLAGS} ${target_flags} --target=${target} ${dir_compile_opts} ${dir_link_opts} -nodefaultlibs) + set(extra_cxxflags_list ${CMAKE_CXX_FLAGS} ${target_flags} --target=${target} ${dir_compile_opts} ${dir_link_opts}) list(JOIN extra_cxxflags_list " " extra_cxxflags) ExternalProject_Add(libcxx-${target}-build