[PATCH] D23856: [libc++] Perform configuration checks with -nodefaultlibs
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 26 08:03:29 PDT 2016
compnerd added inline comments.
================
Comment at: cmake/config-ix.cmake:18
@@ +17,3 @@
+if (LIBCXX_SUPPORTS_NODEFAULTLIBS_FLAG)
+ list(APPEND CMAKE_REQUIRED_LIBRARIES -nodefaultlibs)
+ if (LIBCXX_HAS_C_LIB)
----------------
Can we not use `CMAKE_SHARED_LINKER_FLAGS` instead of `CMAKE_REQUIRED_LIBRARIES`? It is slightly misleading.
https://reviews.llvm.org/D23856
More information about the cfe-commits
mailing list