From 34c5818e80579cb1c483b5020be0b7d5291aae0b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 3 Jan 2023 16:15:49 +0200 Subject: [PATCH] Place incremental link information files in the temp directory --- plugins/msvc/msvclinker.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/msvc/msvclinker.cpp b/plugins/msvc/msvclinker.cpp index 5ce9d32..d768b23 100644 --- a/plugins/msvc/msvclinker.cpp +++ b/plugins/msvc/msvclinker.cpp @@ -132,7 +132,12 @@ ExternalTask::Arguments MsvcLinker::_run(const Binary &bin, FS::Path &work_dir) if(binfo.strip) argv.push_back("/INCREMENTAL:NO"); else + { argv.push_back("/DEBUG:FULL"); + FS::Path temp_dir = bin.get_package()->get_temp_directory()/bin.get_component()->get_name(); + FS::Path ilk_path = temp_dir/(FS::basepart(FS::basename(bin.get_path()))+".ilk"); + argv.push_back("/ILK:"+relative(ilk_path, work_dir).str()); + } argv.push_back("/OUT:"+relative(bin.get_path(), work_dir).str()); if(!imp_fn.empty()) -- 2.43.0