From 10a3b87db80ae87d6d01ef2af562a732055da1c2 Mon Sep 17 00:00:00 2001 From: Emil Imbert Villumsen Date: Sat, 7 Jun 2025 00:33:18 +0200 Subject: Remove unnecessary compile definitions (#7355) * Remove unused compile definitions No need for full external path; slang is already linking with the SPIRV-Headers cmake target which adds the proper include flags --- CMakeLists.txt | 16 ---------------- source/slang/slang-ir-glsl-legalize.cpp | 5 ----- 2 files changed, 21 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c4f8d410..ca3d4b806 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -241,22 +241,6 @@ advanced_option( OFF ) -if(${SLANG_USE_SYSTEM_LZ4}) - add_compile_definitions(SLANG_USE_SYSTEM_LZ4_HEADER) -endif() - -if(${SLANG_USE_SYSTEM_SPIRV_HEADERS}) - add_compile_definitions(SLANG_USE_SYSTEM_SPIRV_HEADER) -endif() - -if(${SLANG_USE_SYSTEM_UNORDERED_DENSE}) - add_compile_definitions(SLANG_USE_SYSTEM_UNORDERED_DENSE_HEADER) -endif() - -if(SLANG_OVERRIDE_SPIRV_HEADERS_PATH) - add_compile_definitions(SLANG_USE_SYSTEM_SPIRV_HEADER) -endif() - enum_option( SLANG_LIB_TYPE # Default diff --git a/source/slang/slang-ir-glsl-legalize.cpp b/source/slang/slang-ir-glsl-legalize.cpp index fa7e69fa4..3cf547c17 100644 --- a/source/slang/slang-ir-glsl-legalize.cpp +++ b/source/slang/slang-ir-glsl-legalize.cpp @@ -11,12 +11,7 @@ #include "slang-ir.h" #include - -#ifdef SLANG_USE_SYSTEM_SPIRV_HEADER #include -#else -#include "../../external/spirv-headers/include/spirv/unified1/spirv.h" -#endif namespace Slang { -- cgit v1.2.3