[PATCH] D31638: [CMake][libcxx] Use check_c_compiler_flag to check for nodefaultlibs

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 19:16:58 PDT 2017


phosek added a comment.

The problem is that `check_cxx_compile_flags` adds the flag to `COMPILE_DEFINITIONS`when calling `try_compile` and that variable is only considered for compilation but not for linking where `-nodefaultlibs` actually makes a difference (I should probably add this into the description).


Repository:
  rL LLVM

https://reviews.llvm.org/D31638





More information about the llvm-commits mailing list