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: allow Windows users to link against gc boehm #13133

Merged
merged 1 commit into from
Jan 11, 2022
Merged

builtin: allow Windows users to link against gc boehm #13133

merged 1 commit into from
Jan 11, 2022

Conversation

Ekopalypse
Copy link
Contributor

If this does not make sense from the project's point of view, please just close it.

This workaround allows Windows users to link against gc boehm with self-compiled shared or static gc boehm libs.
To do this, one just needs to add an additional flag to the v-source, such as.

$if msvc {
	// #flag -lD:\\ProgramData\\Compiler\\gc-8.0.4\\gc64_dll  // 64bit dll usage
	#flag -lD:\\ProgramData\\Compiler\\gc-8.0.4\\gc        // static lib usage
}

fn main() { 
	println('I was build with boehm')
}

@spytheman spytheman merged commit cb684b5 into vlang:master Jan 11, 2022
spytheman added a commit to jeffmikels/v that referenced this pull request Jan 11, 2022
* origin:
  ci: vfmt fmt.v ...
  cgen: fix `$if T.typ is Type {` (vlang#13135)
  parser: add support for mutable if guards (vlang#13132)
  tests: test with valgrind rune.bytes(), fix leak in .str_escaped()
  builtin: reduce allocations in `rune.bytes()`
  builtin: allow msvc users to link against a custom compiled Boehm library (vlang#13133)
  cgen: fix cast in the index of reference fixed array (fix vlang#13128) (vlang#13131)
  builtin: add a rune.bytes() convenience method (vlang#13129)
  checker: check error for match conditions with parenthesis (vlang#13130)
@Ekopalypse Ekopalypse deleted the msvc_boehm_workaround branch May 10, 2022 10:10
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