summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorIsuru Fernando <isuruf@gmail.com>2019-11-23 04:04:52 (GMT)
committerBrad King <brad.king@kitware.com>2019-12-06 14:30:25 (GMT)
commit5ff1d7bd906bcbb831f87824ed5111f0a47d6b68 (patch)
tree73442e972f59e0880a45031a3d7da21086382e5f /Source/cmGeneratorTarget.cxx
parent07226324ebd179a22cf581f31be07b71ab160ce6 (diff)
downloadCMake-5ff1d7bd906bcbb831f87824ed5111f0a47d6b68.zip
CMake-5ff1d7bd906bcbb831f87824ed5111f0a47d6b68.tar.gz
CMake-5ff1d7bd906bcbb831f87824ed5111f0a47d6b68.tar.bz2
Add support for WINDOWS_EXPORT_ALL_SYMBOLS when cross-compiling to Windows
Implement `__create_def` using `llvm-nm` (when given as `CMAKE_NM`).
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index d0b5f9e..2204c5a 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -2508,11 +2508,11 @@ void cmGeneratorTarget::ComputeModuleDefinitionInfo(
info.WindowsExportAllSymbols =
this->Makefile->IsOn("CMAKE_SUPPORT_WINDOWS_EXPORT_ALL_SYMBOLS") &&
this->GetPropertyAsBool("WINDOWS_EXPORT_ALL_SYMBOLS");
-#if defined(_WIN32) && !defined(CMAKE_BOOTSTRAP)
+#if !defined(CMAKE_BOOTSTRAP)
info.DefFileGenerated =
info.WindowsExportAllSymbols || info.Sources.size() > 1;
#else
- // Our __create_def helper is only available on Windows.
+ // Our __create_def helper is not available during CMake bootstrap.
info.DefFileGenerated = false;
#endif
if (info.DefFileGenerated) {