From cf23d115a29fc143fe367ca57097fa82f7cb9a34 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 3 Jan 2023 19:14:56 +0200 Subject: [PATCH] Disable generation of .exp files on MSVC They don't seem useful outside of circular import situations, which I don't have. --- plugins/msvc/msvclinker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/msvc/msvclinker.cpp b/plugins/msvc/msvclinker.cpp index 31f9a4f..8f0ac94 100644 --- a/plugins/msvc/msvclinker.cpp +++ b/plugins/msvc/msvclinker.cpp @@ -138,6 +138,8 @@ ExternalTask::Arguments MsvcLinker::_run(const Binary &bin, FS::Path &work_dir) else argv.push_back("/NOIMPLIB"); + argv.push_back("/NOEXP"); + for(Target *d: bin.get_dependencies()) { FileTarget *file = dynamic_cast(d); -- 2.43.0