Files
intel-graphics-compiler/IGC/VectorCompiler/CMakeLists.txt
Michał Krause fd46428741 Switch builds to LLVM 16 and update docs
Switch builds to use LLVM 16. Updated the documentation to treat LLVM 16 as default.
Refreshed parts of buildIGC.sh regarding supported versions. Fixed a bug when setting a variable in buildIGC.sh to a default value.

Force enabled exceptions for VC. This is a workaround while we're investigating why they're disabled.
2025-10-24 12:25:56 +02:00

67 lines
1.7 KiB
CMake

#=========================== begin_copyright_notice ============================
#
# Copyright (C) 2020-2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
#============================ end_copyright_notice =============================
# CMake Settings:
# - VC_INTRINSICS_SRC
set(IGC_BUILD__PROJ__VectorCompiler "${IGC_BUILD__PROJ_NAME_PREFIX}VectorCompiler")
set(IGC_BUILD__PROJ__VectorCompiler "${IGC_BUILD__PROJ__VectorCompiler}" PARENT_SCOPE)
# Ordering matters here.
# FIXME: set proper dependencies for VCCodeGen and others.
set(IGC_BUILD__PROJ_VC_LIBS_TO_LINK VCIGCDeps PARENT_SCOPE)
set(IGC_BUILD__PROJ_LABEL__VectorCompiler "${IGC_BUILD__PROJ__VectorCompiler}")
set(LLVM_ENABLE_EH ON)
message(STATUS "+++ Source/IGC/VectorCompiler +++")
message(STATUS "[VC] Build proj: ${IGC_BUILD__PROJ__VectorCompiler}")
# --- Options ---
if(LLVM_ON_WIN32)
# disable 32/64 warnings
add_compile_options(/wd4244)
# disable unary minus to unsigned type warning
add_compile_options(/wd4146)
# disable implicitly deleted dtor warning
add_compile_options(/wd4624)
# Disable double-inline warning coming from StringRef.h:898
# For some reason it is not filtered by /external:I option
add_compile_options(/wd4141)
endif()
# --- VC platforms ---
include(cmake/supported_platforms_list.cmake)
# --- VC Intrinsics ---
include(cmake/handle_vc_intrinsics.cmake)
# --- VC Opt ---
add_subdirectory(include)
add_subdirectory(lib)
# Common utilities that depend on other IGC components.
# These have to be separated because of circular dependencies between
# some components in IGC.
add_subdirectory(igcdeps)
if(IGC_BUILD__CMLIT_ENABLE)
add_subdirectory(test)
endif()
add_subdirectory(utils)
# --- CMCL ---
add_subdirectory(CMCL)