Skip to content

Commit 8458fab

Browse files
[SYCL] Fix a few warnings during build scripts configuration (#5082)
1 parent 0070e9e commit 8458fab

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ set(LIBCLC_TARGET_TO_TEST)
8585
foreach ( t ${LIBCLC_TEST_TARGETS_ALL})
8686
if( ${t} IN_LIST LIBCLC_TARGETS_TO_BUILD )
8787
list( APPEND LIBCLC_TARGET_TO_TEST "${t}" )
88-
endif(t)
88+
endif( ${t} IN_LIST LIBCLC_TARGETS_TO_BUILD )
8989
endforeach(t)
9090

9191
execute_process( COMMAND ${LLVM_CONFIG} "--system-libs"

opencl/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ include(FetchContent)
44

55
# Suppress warnings related to dependencies
66
if (MSVC)
7-
add_definitions(
8-
-wd4133 # Suppress ''function': incompatible types - from 'char [9]' to 'LPCWSTR''
9-
-wd4152 # Suppress 'nonstandard extension, function/data pointer conversion in expression'
10-
-wd4201 # Suppress 'nonstandard extension used: nameless struct/union'
11-
)
7+
add_definitions(
8+
-wd4133 # Suppress ''function': incompatible types - from 'char [9]' to 'LPCWSTR''
9+
-wd4152 # Suppress 'nonstandard extension, function/data pointer conversion in expression'
10+
-wd4201 # Suppress 'nonstandard extension used: nameless struct/union'
11+
)
1212
endif()
1313

1414
# Repo URLs

sycl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if(MSVC)
4949
# Skip asynchronous C++ exceptions catching and assume "extern C" functions
5050
# never throw C++ exceptions.
5151
set(LLVM_REQUIRES_EH ON)
52+
set(LLVM_REQUIRES_RTTI ON)
5253
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
5354

5455
# Add PDB debug information

0 commit comments

Comments
 (0)