From 81b7638900b0b80eeae046e2f5d538154a592bd2 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Fri, 12 Sep 2025 14:38:00 -0700 Subject: [PATCH] fix: skip .S compiles for msvc/windows --- refresh.template.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/refresh.template.py b/refresh.template.py index 194f365e..61fc8590 100644 --- a/refresh.template.py +++ b/refresh.template.py @@ -587,6 +587,9 @@ def _get_headers(compile_action, source_path: str): if compile_action.arguments[0].endswith('cl.exe'): # cl.exe and also clang-cl.exe headers, should_cache = _get_headers_msvc(compile_action, source_path) + elif compile_action.arguments[0].endswith('ml.exe') or compile_action.arguments[0].endswith('ml64.exe'): # skip when compiling .S MASM files on Windows + headers = set() + should_cache = False else: headers, should_cache = _get_headers_gcc(compile_action, source_path, compile_action.actionKey)