Skip to content

Commit

Permalink
Build fix for msvc.. use flag_if_supported instead of flag
Browse files Browse the repository at this point in the history
  • Loading branch information
aclysma committed Aug 28, 2019
1 parent 9f914fc commit b2d5da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() -> io::Result<()> {
.define("IMGUI_DISABLE_WIN32_FUNCTIONS", None)
.define("IMGUI_DISABLE_OSX_FUNCTIONS", None);

build.flag("-Wno-return-type-c-linkage");
build.flag_if_supported("-Wno-return-type-c-linkage");
for path in &CPP_FILES {
assert_file_exists(path)?;
build.file(path);
Expand Down

0 comments on commit b2d5da3

Please sign in to comment.