Build fix for msvc.. use flag_if_supported instead of flag

This commit is contained in:
Philip Degarmo 2019-08-28 08:08:10 -07:00
parent 9f914fc12d
commit b2d5da3a6a

View File

@ -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);