File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11# Copyright (c) 2020-2025 Intel Corporation
2+ # Copyright (c) 2026 UXL Foundation Contributors
23#
34# Licensed under the Apache License, Version 2.0 (the "License");
45# you may not use this file except in compliance with the License.
@@ -16,7 +17,8 @@ cmake_minimum_required (VERSION 3.4)
1617
1718if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
1819 set (CMAKE_CXX_COMPILER "icx-cl" )
19- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
20+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl /EHsc" )
21+ set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsycl" )
2022else ()
2123 set (CMAKE_CXX_COMPILER "icpx" )
2224 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
Original file line number Diff line number Diff line change 11# Copyright (c) 2020-2025 Intel Corporation
2+ # Copyright (c) 2026 UXL Foundation Contributors
23#
34# Licensed under the Apache License, Version 2.0 (the "License");
45# you may not use this file except in compliance with the License.
@@ -16,8 +17,8 @@ cmake_minimum_required (VERSION 3.4)
1617
1718if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
1819 set (CMAKE_CXX_COMPILER "icx-cl" )
19- set (CMAKE_CXX_FLAGS "fsycl" )
20-
20+ set (CMAKE_CXX_FLAGS "- fsycl" )
21+ set ( CMAKE_EXE_LINKER_FLAGS " ${CMAKE_EXE_LINKER_FLAGS} -fsycl" )
2122else ()
2223 set (CMAKE_CXX_COMPILER "icpx" )
2324 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
Original file line number Diff line number Diff line change 11# Copyright (c) 2020-2025 Intel Corporation
2+ # Copyright (c) 2026 UXL Foundation Contributors
23#
34# Licensed under the Apache License, Version 2.0 (the "License");
45# you may not use this file except in compliance with the License.
@@ -16,8 +17,8 @@ cmake_minimum_required (VERSION 3.4)
1617
1718if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
1819 set (CMAKE_CXX_COMPILER "icx-cl" )
19- set (CMAKE_CXX_FLAGS "fsycl" )
20-
20+ set (CMAKE_CXX_FLAGS "- fsycl /EHsc " )
21+ set ( CMAKE_EXE_LINKER_FLAGS " ${CMAKE_EXE_LINKER_FLAGS} -fsycl" )
2122else ()
2223 set (CMAKE_CXX_COMPILER "icpx" )
2324 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
You can’t perform that action at this time.
0 commit comments