From 36ebdcc124832365f89c2c8ec797937e208f958e Mon Sep 17 00:00:00 2001 From: p0358 Date: Tue, 4 Jul 2023 05:58:22 +0200 Subject: [PATCH] fix for `targetextension` config option --- ninja.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ninja.lua b/ninja.lua index 60a8743..5fef53a 100644 --- a/ninja.lua +++ b/ninja.lua @@ -1,4 +1,4 @@ --- +-- -- Name: premake-ninja/ninja.lua -- Purpose: Define the ninja action. -- Author: Dmitry Ivanov @@ -635,7 +635,7 @@ function ninja.generateProjectCfg(cfg) p.w("# link shared lib") local extra_outputs = {} - if ninja.endsWith(output, ".dll") then + if ninja.endsWith(output, ".dll") or toolset == p.tools.msc then extra_outputs = { ninja.noext(output, ".dll") .. ".lib", ninja.noext(output, ".dll") .. ".exp" } elseif ninja.endsWith(output, ".so") then -- in case of .so there are no corresponding .a file