Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builtin: fix compilation with tcc on OpenBSD using libgc #22234

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

lcheylus
Copy link
Contributor

@lcheylus lcheylus commented Sep 16, 2024

Fix #22156

Tests OK on OpenBSD/amd64 with:

$ ./thirdparty/tcc/tcc.exe -v
tcc version 0.9.28rc 2024-09-14 HEAD@b8b6a5fd (x86_64 OpenBSD)
$ ./v -cc tcc run ~/tmp/hello_world.v
Hello world from V

$ /usr/local/bin/tcc  -v
tcc version 0.9.27 2023-07-05 mob@5b28165 (x86_64 OpenBSD)
$ ./v -cc /usr/local/bin/tcc run ~/tmp/hello_world.v
Hello world from V

$ ./v -cc clang run ~/tmp/hello_world.v
Hello world from V
$ ./v -cc egcc run ~/tmp/hello_world.v
Hello world from V

Copy link
Member

@spytheman spytheman left a comment

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 c3b55a6 into vlang:master Sep 16, 2024
78 checks passed
@lcheylus lcheylus deleted the openbsd-tcc branch September 16, 2024 16:34
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.

Binary crashes when compiled with tcc on OpenBSD
2 participants