Skip to content

Commit

Permalink
Fix cross-compilation to Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lluchs committed Apr 3, 2017
1 parent df30cd6 commit a09eef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ fn main() {
// here. Just exclude the file instead.
let c = Regex::new(r#"(?m)^\s*src/lib/C4SimpleLog\.cpp$"#).unwrap()
.replace(&c, "#$0");
// Don't require native c4group when cross-compiling.
let c = Regex::new(r#"(?m)^[^#\n]*IMPORT_NATIVE_TOOLS.*$"#).unwrap()
.replace_all(&c, "#$0");
c.into_owned()
};
if cmakelists_patched != cmakelists {
Expand Down

0 comments on commit a09eef7

Please sign in to comment.