mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
cargo fmt
This commit is contained in:
parent
5bf5c54447
commit
79a61ca46d
@ -50,16 +50,13 @@ fn main() -> io::Result<()> {
|
|||||||
// Avoid the if-supported flag functions for easy cases, as they're
|
// Avoid the if-supported flag functions for easy cases, as they're
|
||||||
// kinda costly.
|
// kinda costly.
|
||||||
if compiler.is_like_gnu() || compiler.is_like_clang() {
|
if compiler.is_like_gnu() || compiler.is_like_clang() {
|
||||||
build
|
build.flag("-fno-exceptions").flag("-fno-rtti");
|
||||||
.flag("-fno-exceptions")
|
|
||||||
.flag("-fno-rtti");
|
|
||||||
}
|
}
|
||||||
// TODO: disable linking C++ stdlib? Not sure if it's allowed.
|
// TODO: disable linking C++ stdlib? Not sure if it's allowed.
|
||||||
build
|
build
|
||||||
.warnings(false)
|
.warnings(false)
|
||||||
.file("include_all_imgui.cpp")
|
.file("include_all_imgui.cpp")
|
||||||
.compile("libcimgui.a")
|
.compile("libcimgui.a");
|
||||||
;
|
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user