Skip to content

Commit

Permalink
Exclude CCDataTest.cpp on MSVC and XL C/C++
Browse files Browse the repository at this point in the history
MSVC can't deal with the templates in this file. The templates
are used to test various data types and their alignment
requirements in a maintainable way. Exclude the file for
for the time being.

XL C/C++ has similar issues.

Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
  • Loading branch information
ymanton committed Nov 9, 2020
1 parent 392e0d3 commit 4e066a5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fvtest/compilertest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ omr_add_executable(compilertest NOWARNINGS
tests/FooBarTest.cpp
tests/LimitFileTest.cpp
tests/LogFileTest.cpp
tests/CCDataTest.cpp
tests/OMRTestEnv.cpp
tests/OptionSetTest.cpp
tests/OpCodesTest.cpp
Expand All @@ -98,6 +97,14 @@ omr_add_executable(compilertest NOWARNINGS
tests/injectors/UnaryOpIlInjector.cpp
)

# MSVC and XL C/C++ have trouble with this file
if (NOT OMR_TOOLCONFIG STREQUAL "msvc" AND NOT OMR_TOOLCONFIG STREQUAL "xlc")
target_sources(compilertest
PRIVATE
tests/CCDataTest.cpp
)
endif()

if(OMR_ARCH_X86)
target_sources(compilertest
PRIVATE
Expand Down

0 comments on commit 4e066a5

Please sign in to comment.