Skip to content

Commit

Permalink
Attempt to not make it shit itself on wankdows
Browse files Browse the repository at this point in the history
  • Loading branch information
ADM228 committed Jul 24, 2024
1 parent 003e015 commit 014bb76
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
fail-fast: false
matrix:
platform:
- { name: Windows VS2019, os: windows-2019 }
- { name: Windows VS2022, os: windows-2022 }
- { name: Linux GCC, os: ubuntu-latest }
- { name: Linux Clang, os: ubuntu-latest, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
- { name: MacOS XCode, os: macos-latest }
- { path: build/examples, name: Windows VS2019, os: windows-2019 }
- { path: build/examples, name: Windows VS2022, os: windows-2022 }
- { path: build, name: Linux GCC, os: ubuntu-latest }
- { path: build, name: Linux Clang, os: ubuntu-latest, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
- { path: build, name: MacOS XCode, os: macos-latest }
example:
- { name: C, target: example_c }
- { name: C++, target: example_cpp }
Expand All @@ -30,4 +30,4 @@ jobs:

- name: Build
shell: bash
run: cmake --build build --target ${{ matrix.example.target }} --config Release
run: cmake --build ${{ matrix.platform.path }} --target ${{ matrix.example.target }} --config Release
6 changes: 5 additions & 1 deletion emu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ target_compile_features(t85apu_emu PRIVATE c_std_99)
if (T85APU_REGWRITE_BUFFER_SIZE)
target_compile_definitions(t85apu_emu PUBLIC T85APU_REGWRITE_BUFFER_SIZE=${T85APU_REGWRITE_BUFFER_SIZE})
endif()
target_link_libraries(t85apu_emu PRIVATE m)

find_library(MATH_LIBRARY m)
if(MATH_LIBRARY)
target_link_libraries(t85apu_emu PRIVATE ${MATH_LIBRARY})
endif()
1 change: 0 additions & 1 deletion emu/t85apu.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Written by alexmush
#include "t85apu.h"
#include <stdio.h>
#include <math.h>
#include <tgmath.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit 014bb76

Please sign in to comment.