Skip to content

Commit

Permalink
Make build for Windows working
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Sep 16, 2024
1 parent 23117ee commit 10e0667
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions abc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ fn main() {

cc.warnings(false)
.define("ABC_USE_STDINT_H", "1")
.define("WIN32_NO_DLL", "")
.flag_if_supported("-Wno-unused-function")
.flag_if_supported("-Wno-write-strings")
.flag_if_supported("-Wno-sign-compare")
Expand Down
7 changes: 7 additions & 0 deletions logger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ impl RssStats {
fn now() -> Self {
#[cfg(not(miri))]
{
#[cfg(target_os = "windows")]
{
Self {
current: MemoryAmount(0),
max: MemoryAmount(0),
}
}
#[cfg(target_os = "macos")]
{
// SAFETY: rusage is plain old data so all zeros is valid
Expand Down

0 comments on commit 10e0667

Please sign in to comment.