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

cgen,builder:fix windows 32bit dll function name mangle #23690

Merged

Conversation

kbkpbot
Copy link
Contributor

@kbkpbot kbkpbot commented Feb 11, 2025

Fix issue #23689

By adding a .def to the command line, force msvc generate a dll with function name has no mangled.

Copy link

Connected to Huly®: V_0.6-22111

def_name := v.pref.out_name[0..v.pref.out_name.len - 4]
a << '/DEF:"${def_name}.def"'
}

a << '/nologo' // NOTE: /NOLOGO is explicitly not recognised!
a << '/OUT:"${v.pref.out_name}"'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
a << '/OUT:"${v.pref.out_name}"'
a << '/OUT:' + os.quoted_path(v.pref.out_name)

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
Copy link
Member

The FreeBSD failure is unrelated and will be fixed soon on master.

@spytheman spytheman merged commit 793487f into vlang:master Feb 11, 2025
64 of 72 checks passed
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