DORSETRIGS
Home

conditional-compilation (3 post)


posts by category not found!

how do I exclude a go library from compilation on linux but not Mac/windows?

Targeting Your Go Project Excluding Libraries for Specific Operating Systems When building Go applications you often encounter situations where you need to util

2 min read 06-10-2024 43
how do I exclude a go library from compilation on linux but not Mac/windows?
how do I exclude a go library from compilation on linux but not Mac/windows?

How can I conditionally depend on different versions of a dependency via crate features but use it as if it were a single one?

Conditional Dependency Management with Crate Features A Single Interface for Multiple Versions In Rust managing dependencies across different versions can be a

2 min read 05-10-2024 41
How can I conditionally depend on different versions of a dependency via crate features but use it as if it were a single one?
How can I conditionally depend on different versions of a dependency via crate features but use it as if it were a single one?

Instantiate different classes according to different compilation flag of same header file in c++

Instantiating Different Classes from the Same Header File with Compilation Flags This article dives into the complexities of using compilation flags to conditio

2 min read 02-09-2024 52
Instantiate different classes according to different compilation flag of same header file in c++
Instantiate different classes according to different compilation flag of same header file in c++