Skip to content

Commit 1690a09

Browse files
committed
UD2026.08 Compiler
1 parent be9df68 commit 1690a09

File tree

3,038 files changed

+119487
-65362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,038 files changed

+119487
-65362
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*.*project
88
*.orig
99
.settings
10+
.clangd
1011

1112
# Build results
1213
[Bb]uild*/

CMakeLists.txt

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2022-2025 Intel Corporation.
2+
# Copyright (C) 2022-2026 Intel Corporation.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

@@ -117,9 +117,15 @@ if (ENABLE_SPLIT_DWARF)
117117
endif()
118118

119119
if(ENABLE_DEVELOPER_BUILD OR uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
120-
enable_asserts()
120+
# align this to LLVM_ENABLE_ASSERTIONS
121+
# if it's undefined, consider it's ON (== developer build || debug)
122+
if(NOT DEFINED LLVM_ENABLE_ASSERTIONS OR LLVM_ENABLE_ASSERTIONS)
123+
enable_asserts()
124+
endif()
121125
endif()
122126

127+
enable_color_diagnostics()
128+
123129
#
124130
# Sub-directories
125131
#
@@ -150,17 +156,21 @@ else()
150156
endif()
151157
endif()
152158

153-
add_subdirectory(thirdparty EXCLUDE_FROM_ALL)
154-
159+
if (ENABLE_CLANG_TIDY_PLUGIN)
160+
# to enable clang-tidy plugin for a target T call `enable_clang_tidy_plugin(T)`
161+
# make sure `add_clang_tidy_plugin` has been called first just once
162+
# with a path to the plugin source directory
163+
include(cmake/clang_tidy_plugin.cmake)
164+
add_clang_tidy_plugin("${CMAKE_CURRENT_SOURCE_DIR}/tools/clang_tidy_plugin")
165+
endif()
155166

167+
add_subdirectory(thirdparty EXCLUDE_FROM_ALL)
156168

157169
if(ENABLE_DEVELOPER_BUILD)
158170
add_compile_definitions(VPUX_DEVELOPER_BUILD)
159171
endif()
160172

161-
if(ENABLE_MLIR_COMPILER)
162-
add_subdirectory(sw_runtime_kernels/kernels)
163-
endif()
173+
add_subdirectory(sw_runtime_kernels/kernels)
164174

165175
add_subdirectory(src)
166176

0 commit comments

Comments
 (0)