mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-21 18:38:28 +00:00
Explicitly link c++11 stdlib
May help with macOS builds
This commit is contained in:
parent
71a2dbd066
commit
e5d3490ce5
@ -40,6 +40,9 @@ fn main() -> std::io::Result<()> {
|
|||||||
let mut build = cc::Build::new();
|
let mut build = cc::Build::new();
|
||||||
build.cpp(true);
|
build.cpp(true);
|
||||||
|
|
||||||
|
// imgui uses C++11 stuff from v1.87 onwards
|
||||||
|
build.cpp_link_stdlib("c++11");
|
||||||
|
|
||||||
// Set defines for compiler
|
// Set defines for compiler
|
||||||
for (key, value) in DEFINES.iter() {
|
for (key, value) in DEFINES.iter() {
|
||||||
build.define(key, *value);
|
build.define(key, *value);
|
||||||
@ -80,7 +83,6 @@ fn main() -> std::io::Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Build imgui lib, suppressing warnings.
|
// Build imgui lib, suppressing warnings.
|
||||||
// TODO: disable linking C++ stdlib? Not sure if it's allowed.
|
|
||||||
build.warnings(false).file(imgui_cpp).compile("libcimgui.a");
|
build.warnings(false).file(imgui_cpp).compile("libcimgui.a");
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user