diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab89c28..b4c2d07 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,6 @@ jobs: build-windows: runs-on: windows-latest - compiler: clang steps: - uses: actions/checkout@v2 with: @@ -20,7 +19,7 @@ jobs: args: install llvm - name: add clang path to $PATH env shell: bash - run: echo "PATH=$PATH:C:\msys64\mingw64\bin" >> $GITHUB_ENV + run: echo "PATH=$PATH:C:\msys64\mingw32\bin" >> $GITHUB_ENV - name: build shell: bash run: cargo build --workspace --verbose diff --git a/leechcore-sys/build.rs b/leechcore-sys/build.rs index 3ee2e5b..8c8d32f 100644 --- a/leechcore-sys/build.rs +++ b/leechcore-sys/build.rs @@ -16,6 +16,11 @@ fn os_define() -> &'static str { "LINUX" } +#[cfg(target_os = "macos")] +fn os_define() -> &'static str { + "LINUX" +} + fn build_leechcore(target: &str) { let mut files = vec![ "oscompatibility.c",