Skip to content

Commit f582e91

Browse files
committed
[SYCL]Small fix for warnings during configuration
1 parent 842f2dd commit f582e91

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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)