Skip to content

Commit

Permalink
mac 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ladnir committed Apr 29, 2024
1 parent 08eab8a commit 3a27c54
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,19 @@ jobs:
submodules: recursive

# Runs a set of commands using the runners shell
- name: build library
- name: build library 20
run: |
python3 build.py
python3 build.py -DMACORO_CPP_VER=20
- name: unit test
- name: unit test 20
run: |
./out/build/osx/frontend/macoroFrontend -u
- name: build library 14
run: |
python3 build.py -DMACORO_CPP_VER=14
- name: unit test 14
run: |
./out/build/osx/frontend/macoroFrontend -u
Expand Down
11 changes: 6 additions & 5 deletions macoro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ else()
CXX_EXTENSIONS NO
)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND MACORO_CPP_20)
target_compile_options( macoro PUBLIC
"-fcoroutines"
)
endif()
#if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND MACORO_CPP_20)
# target_compile_options( macoro PUBLIC
# "-fcoroutines"
# )
#endif()

if(MACORO_ASAN)
message("Warning: ASAN is enabled for macoro.")
if(MSVC)
Expand Down

0 comments on commit 3a27c54

Please sign in to comment.