Skip to content

Commit ec6cf35

Browse files
committed
fix surelog build on mac
1 parent 790dc9b commit ec6cf35

File tree

9 files changed

+16
-10
lines changed

9 files changed

+16
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,18 @@ jobs:
6969
restore-keys: brew-
7070
if: ${{ runner.os == 'macOS' }}
7171

72+
- uses: actions/setup-java@v3
73+
with:
74+
distribution: 'temurin'
75+
java-version: '11'
76+
7277
- name: Install Mac Dependencies
7378
run: |
7479
brew update
75-
brew install make cmake graphviz bison flex boost nlohmann-json icarus-verilog
80+
brew install bison boost cmake flex graphviz icarus-verilog make nlohmann-json
7681
sudo ln -s /usr/local/bin/gmake /usr/local/bin/make
82+
env:
83+
HOMEBREW_NO_AUTO_UPDATE: "1"
7784
if: ${{ runner.os == 'macOS'}}
7885

7986
- name: Format
@@ -116,7 +123,7 @@ jobs:
116123
git clone https://github.com/chipsalliance/Surelog.git
117124
pushd Surelog
118125
git submodule update --init --recursive
119-
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DSURELOG_USE_HOST_GTEST=ON -S . && cmake --build build && sudo cmake --install build
126+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DSURELOG_USE_HOST_GTEST=ON -DPYTHON_EXECUTABLE=`which python` -DPython3_EXECUTABLE=`which python` -S . && cmake --build build && sudo cmake --install build
120127
popd
121128
env:
122129
OS: ${{ runner.os }}

Makefile_test.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $(1): $(1)/ok
7878
@printf "Test %-18s \e[32mPASSED\e[0m @ %s\n" $(1) $(CURDIR);
7979

8080
$(1)/$$(notdir $(1).vvp): $(1)/$$(notdir $(1).v)
81-
@iverilog -vvvv -g2005 -o $$@ $$< $(SIM_LIBS) -I../ -DVCD_FILE=\"$(1)/$$(notdir $(1).vcd)\" >$(1)/$$(notdir $(1).vvp.log) 2>&1; \
81+
@iverilog -vvvv -g2005 -grelative-include -o $$@ $$< $(SIM_LIBS) -I../ -DVCD_FILE=\"$(1)/$$(notdir $(1).vcd)\" >$(1)/$$(notdir $(1).vvp.log) 2>&1; \
8282
if [ $$$$? -ne 0 ]; then \
8383
printf "Test %-18s \e[31;1mFAILED\e[0m @ %s\n" $(1) $(CURDIR); \
8484
false; \

ql-qlf-plugin/tests/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ TESTS = \
3737
# qlf_k6n10_bram \
3838
3939
SIM_TESTS = \
40-
qlf_k6n10f/sim_dsp_mult_cfg_ports \
4140
qlf_k6n10f/sim_dsp_mult_cfg_ports \
4241
qlf_k6n10f/sim_dsp_mult_cfg_params \
4342
qlf_k6n10f/sim_dsp_mult_r_cfg_ports \

ql-qlf-plugin/tests/qlf_k6n10f/sim_dsp_fir_cfg_params/sim_dsp_fir_cfg_params.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
// SPDX-License-Identifier: Apache-2.0
1616

17-
`include "qlf_k6n10f/cells_sim.v"
17+
`include "../../../qlf_k6n10f/cells_sim.v"
1818

1919
module tb();
2020

ql-qlf-plugin/tests/qlf_k6n10f/sim_dsp_fir_cfg_ports/sim_dsp_fir_cfg_ports.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
// SPDX-License-Identifier: Apache-2.0
1616

17-
`include "qlf_k6n10f/cells_sim.v"
17+
`include "../../../qlf_k6n10f/cells_sim.v"
1818

1919
module tb();
2020

ql-qlf-plugin/tests/qlf_k6n10f/sim_dsp_mult_r_cfg_params/sim_dsp_mult_r_cfg_params.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
// SPDX-License-Identifier: Apache-2.0
1616

17-
`include "qlf_k6n10f/cells_sim.v"
17+
`include "../../../qlf_k6n10f/cells_sim.v"
1818

1919
module tb();
2020

ql-qlf-plugin/tests/qlf_k6n10f/sim_dsp_mult_r_cfg_ports/sim_dsp_mult_r_cfg_ports.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
// SPDX-License-Identifier: Apache-2.0
1616

17-
`include "qlf_k6n10f/cells_sim.v"
17+
`include "../../../qlf_k6n10f/cells_sim.v"
1818

1919
module tb();
2020

ql-qlf-plugin/tests/qlf_k6n10f/sim_dsp_simd_cfg_params/sim_dsp_simd_cfg_params.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
// SPDX-License-Identifier: Apache-2.0
1616

17-
`include "qlf_k6n10f/cells_sim.v"
17+
`include "../../../qlf_k6n10f/cells_sim.v"
1818
`timescale 1ns/1ps
1919

2020
module tb();

ql-qlf-plugin/tests/qlf_k6n10f/sim_dsp_simd_cfg_ports/sim_dsp_simd_cfg_ports.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
// SPDX-License-Identifier: Apache-2.0
1616

17-
`include "qlf_k6n10f/cells_sim.v"
17+
`include "../../../qlf_k6n10f/cells_sim.v"
1818
`timescale 1ns/1ps
1919

2020
module tb();

0 commit comments

Comments
 (0)