From d2fad44ef3a79ca8900f1307060153ded57053fc Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 9 Aug 2021 21:46:24 +0900 Subject: [PATCH] fix: .S is an extension for asm file on Windows (#115) --- pylib/gyp/generator/ninja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/gyp/generator/ninja.py b/pylib/gyp/generator/ninja.py index b66e674a..cfe3c49a 100644 --- a/pylib/gyp/generator/ninja.py +++ b/pylib/gyp/generator/ninja.py @@ -1221,7 +1221,7 @@ def WriteSourcesForArch( command = "cc_s" elif ( self.flavor == "win" - and ext == "asm" + and ext in ("asm", "S") and not self.msvs_settings.HasExplicitAsmRules(spec) ): command = "asm"