Skip to content

Commit 871074f

Browse files
bruchar1dcbaker
authored andcommitted
windows.compile_resources: do not display preprocessor outputs
Fix a side effect of mesonbuild#15481
1 parent 062d40d commit 871074f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/scripts/rc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def run(args: T.List[str]) -> int:
3232
# Use preprocessor to display include files
3333
include_args = [a for a in rc_args if a.startswith(('/I', '-I'))]
3434
cmd = [cl, '/showIncludes', '/EP', '/nologo', '/DRC_INVOKED'] + include_args + ['/Tc' + target]
35-
result = subprocess.call(cmd)
35+
result = subprocess.call(cmd, stdout=subprocess.DEVNULL)
3636
if result != 0:
3737
print('Error running preprocessor to find resource dependencies')
3838
# continue anyway. rc.exe should catch the error later

0 commit comments

Comments
 (0)