File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -238,15 +238,20 @@ jobs:
238238 lscpu
239239
240240 # TODO: fix or justify the excluded warnings
241- warning_flags ="-Wall -Wextra-semi -Werror -Wno-error=sign-compare"
241+ EXTRA_CXX_FLAGS ="-Wall -Wextra-semi -Werror -Wno-error=sign-compare"
242242 if [[ "${{ matrix.cxx_compiler }}" != "g++" ]]; then
243- warning_flags ="${warning_flags } -Wno-error=pass-failed"
243+ EXTRA_CXX_FLAGS ="${EXTRA_CXX_FLAGS } -Wno-error=pass-failed"
244244 fi
245245 if [[ "${{ matrix.cxx_compiler }}" == "icpx" ]]; then
246- warning_flags ="${warning_flags } -Wno-error=recommended-option"
246+ EXTRA_CXX_FLAGS ="${EXTRA_CXX_FLAGS } -Wno-error=recommended-option"
247247 fi
248+
249+ if [[ "${{ matrix.device_type }}" == "FPGA_EMU" ]]; then
250+ EXTRA_CXX_FLAGS="${EXTRA_CXX_FLAGS} -DONEDPL_FPGA_DEVICE -DONEDPL_FPGA_EMULATOR"
251+ fi
252+
248253 cmake -DCMAKE_CXX_STANDARD=${{ matrix.std }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
249- -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DONEDPL_BACKEND=${{ matrix.backend }} -DCMAKE_CXX_FLAGS="${warning_flags }" ..
254+ -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DONEDPL_BACKEND=${{ matrix.backend }} -DCMAKE_CXX_FLAGS="${EXTRA_CXX_FLAGS }" ..
250255 make VERBOSE=1 -j${BUILD_CONCURRENCY} ${make_targets} |& tee build.log
251256 ONEAPI_DEVICE_SELECTOR=*:${{ matrix.device_type }}
252257 ctest --timeout ${TEST_TIMEOUT} --output-on-failure ${ctest_flags} |& tee ctest.log
You can’t perform that action at this time.
0 commit comments