]> git.tdb.fi Git - builder.git/blobdiff - plugins/msvc/msvclinker.cpp
Place incremental link information files in the temp directory
[builder.git] / plugins / msvc / msvclinker.cpp
index 5ce9d32112688e36cd65768e8199ae6ade9ea315..d768b236cbb5d7dd7b80812af8776ed0688295e4 100644 (file)
@@ -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())