Skip to content

Commit 8075c88

Browse files
Compiler fixes for MacOS/gcc-20; nlhomann json update (#286)
closes #285 --------- Co-authored-by: Knute Lingaard <klingaard@mips.com>
1 parent 8ec0de1 commit 8075c88

6 files changed

Lines changed: 14950 additions & 12063 deletions

File tree

‎.github/workflows/macos-build.yml‎

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
strategy:
1313
# Strategy is a matrix of debug and release builds/regression
1414
matrix:
15-
os: [macos-latest]
16-
BUILD_TYPE: [Debug]
15+
os: [macos-15]
16+
BUILD_TYPE: [Release]
1717
COMPILER: [clang]
1818

1919
name: MacOS-${{ matrix.BUILD_TYPE }}-${{matrix.COMPILER}}
@@ -40,19 +40,12 @@ jobs:
4040
path: map
4141
ref: map_v2.0.21
4242

43-
# Setup Conda and build environment
43+
# Setup build environment
4444
- name: Grab Python v3.8
4545
uses: actions/setup-python@v3
4646
with:
4747
python-version: 3.8
4848

49-
# Cache the conda dependencies to
50-
- name: Cache conda deps
51-
uses: actions/cache@v3
52-
with:
53-
key: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-conda-${{ hashFiles('.github/workflows/conda/macos_env.yml') }}
54-
path: /usr/share/miniconda/envs/riscv_perf_model # Default path for conda
55-
5649
# Setup CCache to cache builds
5750
- name: ccache
5851
uses: hendrikmuhs/ccache-action@v1.2
@@ -62,13 +55,10 @@ jobs:
6255
${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache-master
6356
${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache
6457
65-
- name: Setup Conda Environment
66-
uses: conda-incubator/setup-miniconda@v3
67-
with:
68-
channels: conda-forge,defaults
69-
channel-priority: true
70-
activate-environment: riscv_perf_model
71-
environment-file: .github/workflows/conda/macos_env.yml
58+
# Install missing packages to make everything build
59+
- name: Install packages needed for sparta/olympia
60+
run: |
61+
brew install boost bison ccache cmake libyaml rapidjson xz zstd yaml-cpp
7262
7363
# Build
7464
- name: Build & Regress

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ else()
3030
endif()
3131

3232
include_directories(${SPARTA_INCLUDE_DIRS})
33+
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
3334

3435
################################################################################
3536
# Set up STF library
@@ -43,7 +44,6 @@ endif()
4344
include(${STF_LIB_BASE}/cmake/stf_linker_setup.cmake)
4445
setup_stf_linker(false)
4546

46-
4747
# Use ccache if installed
4848
find_program (CCACHE_PROGRAM ccache)
4949
if (CCACHE_PROGRAM)

‎core/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ add_library(instgen
3939

4040
find_package(Boost REQUIRED COMPONENTS json)
4141

42-
target_link_libraries(instgen stf zstd mavis Boost::json)
42+
target_link_libraries(instgen ${STF_LINK_LIBS} mavis Boost::json)
4343

4444
get_property(SPARTA_INCLUDE_PROP TARGET SPARTA::sparta PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
4545
target_include_directories(core SYSTEM PRIVATE ${SPARTA_INCLUDE_PROP})

0 commit comments

Comments
 (0)