Skip to content

ast: fix parse_cflag() support other flags between allowed_flags#24146

Merged
spytheman merged 2 commits into
vlang:masterfrom
kbkpbot:fix-ast-cflags-parse_cflag
Apr 7, 2025
Merged

ast: fix parse_cflag() support other flags between allowed_flags#24146
spytheman merged 2 commits into
vlang:masterfrom
kbkpbot:fix-ast-cflags-parse_cflag

Conversation

@kbkpbot

@kbkpbot kbkpbot commented Apr 6, 2025

Copy link
Copy Markdown
Contributor

Fix issue #24121
Parse cflags like '-I/usr/include/mysql -m64 -I/usr/include', if the first flag is in allowed_flags, it will treat all before next allowed_flags as a value, which is not correct. The old code will create name=-I, value=/usr/include/mysql -m64.

@kbkpbot kbkpbot linked an issue Apr 6, 2025 that may be closed by this pull request
@kbkpbot kbkpbot changed the title ast: fix parse_cflag() support other flags after allowed_flags ast: fix parse_cflag() support other flags between allowed_flags Apr 6, 2025
@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22537

@spytheman spytheman 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.

Excellent work.

@spytheman spytheman merged commit e9ac9f1 into vlang:master Apr 7, 2025
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.

mysql compile file on RockyLinux 8

2 participants