Skip to content

Commit

Permalink
More win fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
haata committed Oct 12, 2023
1 parent f73ef86 commit 09db753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install dependencies
run: |
brew update
brew install wxwidgets
brew install wxmac
- name: Build
run: |
make -j
Expand Down Expand Up @@ -78,7 +78,6 @@ jobs:
make
binutils
gcc
wxwidgets3.2
- name: Build
shell: msys2 {0}
run: |
Expand Down
6 changes: 4 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() {
#[cfg(target_os = "macos")]
"src/OSXPortFactory.cpp",
"src/PortFactory.cpp",
#[cfg(any(target_os = "linux", target_os = "macos"))]
#[cfg(target_family = "unix")]
"src/PosixSerialPort.cpp",
"src/Samba.cpp",
#[cfg(target_os = "windows")]
Expand All @@ -39,7 +39,7 @@ fn main() {
#[cfg(target_os = "macos")]
"src/OSXPortFactory.h",
"src/PortFactory.h",
#[cfg(any(target_os = "linux", target_os = "macos"))]
#[cfg(target_family = "unix")]
"src/PosixSerialPort.h",
"src/Samba.h",
"src/SerialPort.h",
Expand Down Expand Up @@ -67,5 +67,7 @@ fn main() {
for rs in rs_files {
println!("cargo:rerun-if-changed={}", rs);
}
#[cfg(target_env = "msvc")]
build.include("src/msvc");
build.flag_if_supported("-std=c++14").compile("bossa");
}

0 comments on commit 09db753

Please sign in to comment.