Skip to content

cgen: fix codegen for -no-builtin flag - #22765

Merged
spytheman merged 1 commit into
vlang:masterfrom
felipensp:fix_nobuiltin_code
Nov 5, 2024
Merged

spytheman merged 1 commit into
vlang:masterfrom
felipensp:fix_nobuiltin_code

Conversation

@felipensp

@felipensp felipensp commented Nov 5, 2024 •

Copy link
Copy Markdown
Member

Testing compiling .c file from #22762 I noticed that _vinit, _vcleanup are called but removed its declaration due -no-builtin flag, as g_main_argc and g_main_argv too.

Huly®: V_0.6-21212

@felipensp
felipensp marked this pull request as ready for review November 5, 2024 10:37

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

Good work.

I usually also use -d no_main in combination with -no-builtin, but it is much better for those flags to be orthogonal/independent indeed.

@spytheman
spytheman merged commit 4a0a9fb into vlang:master Nov 5, 2024
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