Skip to content

fix: write pch cflags as a list instead of a map object - #355

Open
PickBas wants to merge 1 commit into
nodejs:mainfrom
JaneaSystems:issue-57633
Open

fix: write pch cflags as a list instead of a map object#355
PickBas wants to merge 1 commit into
nodejs:mainfrom
JaneaSystems:issue-57633

Conversation

@PickBas

@PickBas PickBas commented Aug 24, 2026

Copy link
Copy Markdown

Problem

GetFlagsModifications returned map objects for cflags_c/cflags_cc.

The /Yc flag never reached cl.exe, so precompiled headers were broken for every ninja build on Windows.

Fix

Replace both map() calls with list comprehensions.

Test

test_ninja_precompiled_header runs the ninja generator over a new PCH fixture and asserts the flags are written out instead of a map object.

Refs: nodejs/node#57633

Comment thread pylib/gyp/msvs_emulation.py Outdated
Comment thread test/integration_test.py Outdated
Refs: nodejs/node#57633
Signed-off-by: PickBas <sayed.kirill@gmail.com>

@cclauss cclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants