Skip to content

Commit

Permalink
[SYCL] Fix a few warnings during build scripts configuration (#5082)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-kabanov authored Dec 8, 2021
1 parent 0070e9e commit 8458fab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libclc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ set(LIBCLC_TARGET_TO_TEST)
foreach ( t ${LIBCLC_TEST_TARGETS_ALL})
if( ${t} IN_LIST LIBCLC_TARGETS_TO_BUILD )
list( APPEND LIBCLC_TARGET_TO_TEST "${t}" )
endif(t)
endif( ${t} IN_LIST LIBCLC_TARGETS_TO_BUILD )
endforeach(t)

execute_process( COMMAND ${LLVM_CONFIG} "--system-libs"
Expand Down
10 changes: 5 additions & 5 deletions opencl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ include(FetchContent)

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

# Repo URLs
Expand Down
1 change: 1 addition & 0 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if(MSVC)
# Skip asynchronous C++ exceptions catching and assume "extern C" functions
# never throw C++ exceptions.
set(LLVM_REQUIRES_EH ON)
set(LLVM_REQUIRES_RTTI ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")

# Add PDB debug information
Expand Down

0 comments on commit 8458fab

Please sign in to comment.