Skip to content

Commit 275be0f

Browse files
author
Kiriti
committed
ci: add -fno-strict-aliasing to CTS build to fix 5 pre-existing Array test failures at -O3
The 5 Array.vxCreateArray failures (CHAR, INT8, UINT8, INT16, UINT16) were caused by GCC -O3 strict-aliasing optimizations in the CTS test code (own_verify_data_items casts between vx_uint8* and vx_char* etc.). Debug (-O0) and -O2 builds pass all 20 Array tests. Only -O3 fails. Adding -fno-strict-aliasing to the CTS build resolves the issue without affecting rustVX performance.
1 parent 404b23e commit 275be0f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/conformance.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ jobs:
140140
cd build
141141
cmake .. \
142142
-DCMAKE_BUILD_TYPE=Release \
143+
-DCMAKE_C_FLAGS="-fno-strict-aliasing" \
144+
-DCMAKE_CXX_FLAGS="-fno-strict-aliasing" \
143145
-DCMAKE_C_STANDARD_LIBRARIES="-lm" \
144146
-DCMAKE_CXX_STANDARD_LIBRARIES="-lm" \
145147
-DOPENVX_INCLUDES="${{ github.workspace }}/include;${{ github.workspace }}/OpenVX-cts/include" \

0 commit comments

Comments
 (0)