Skip to content

Commit

Permalink
Make the code compile on macOS (#125)
Browse files Browse the repository at this point in the history
With the optimization that build does not require Service Fabric runtime
installed, building on any major platform is allowed. Here adding a
small fix to make the code compile on macOS, though Service Fabric does
not run natively on macOS.
  • Loading branch information
OscarTHZhang authored Jan 13, 2025
1 parent 6d4b848 commit a7fe4a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ enabled = true
```

## Quick Build
Build all Rust libraries and examples
Build Rust libraries only:
```sh
cargo build
```

Alternatively, build all Rust libraries and samples:
```sh
cmake . -B build
cmake --build build
Expand Down
4 changes: 4 additions & 0 deletions crates/libs/core/src/debug/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ pub fn wait_for_debugger() {

#[cfg(target_os = "linux")]
pub fn wait_for_debugger() {}

/// macOS is not supported. This is merely to make this library to compile on macOS.
#[cfg(target_os = "macos")]
pub fn wait_for_debugger() {}

0 comments on commit a7fe4a9

Please sign in to comment.