From ca2317a28814c2ffe6427470be57df6d778b1358 Mon Sep 17 00:00:00 2001 From: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Date: Fri, 30 Aug 2024 19:58:07 -0400 Subject: Fix prelude generation by using relative paths for including `slang.h` (#4973) * Change `slang.h` path in `slang-common.h` to allow `slang-embed` to resolve correctly. * Change `slang.h` path in all slang/core files --------- Co-authored-by: Yong He --- source/core/slang-blob.h | 2 +- source/core/slang-chunked-list.h | 2 +- source/core/slang-common.h | 2 +- source/core/slang-crypto.h | 2 +- source/core/slang-file-system.h | 2 +- source/core/slang-free-list.h | 2 +- source/core/slang-hash.h | 2 +- source/core/slang-hex-dump-util.h | 2 +- source/core/slang-http.h | 2 +- source/core/slang-linked-list.h | 2 +- source/core/slang-list.h | 2 +- source/core/slang-memory-arena.h | 2 +- source/core/slang-persistent-cache.h | 2 +- source/core/slang-platform.h | 2 +- source/core/slang-random-generator.h | 2 +- source/core/slang-shared-library.h | 2 +- source/core/slang-short-list.h | 2 +- source/core/slang-smart-pointer.h | 2 +- source/core/slang-type-convert-util.h | 2 +- source/core/slang-type-text-util.h | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) (limited to 'source') diff --git a/source/core/slang-blob.h b/source/core/slang-blob.h index 4df8f0db6..2b752b306 100644 --- a/source/core/slang-blob.h +++ b/source/core/slang-blob.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_BLOB_H #define SLANG_CORE_BLOB_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-string.h" #include "slang-list.h" diff --git a/source/core/slang-chunked-list.h b/source/core/slang-chunked-list.h index d414eaefb..f963ecfab 100644 --- a/source/core/slang-chunked-list.h +++ b/source/core/slang-chunked-list.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_CHUNKED_LIST_H #define SLANG_CORE_CHUNKED_LIST_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-allocator.h" #include "slang-array-view.h" diff --git a/source/core/slang-common.h b/source/core/slang-common.h index 907bf4593..855ea08db 100644 --- a/source/core/slang-common.h +++ b/source/core/slang-common.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_COMMON_H #define SLANG_CORE_COMMON_H -#include "slang.h" +#include "../../include/slang.h" #include diff --git a/source/core/slang-crypto.h b/source/core/slang-crypto.h index feab88aa4..c6cd733e7 100644 --- a/source/core/slang-crypto.h +++ b/source/core/slang-crypto.h @@ -1,5 +1,5 @@ #pragma once -#include "slang.h" +#include "../../include/slang.h" #include "../core/slang-string.h" #include "../core/slang-blob.h" #include "../core/slang-list.h" diff --git a/source/core/slang-file-system.h b/source/core/slang-file-system.h index dad2731d9..7de5b5dbd 100644 --- a/source/core/slang-file-system.h +++ b/source/core/slang-file-system.h @@ -1,7 +1,7 @@ #ifndef SLANG_FILE_SYSTEM_H_INCLUDED #define SLANG_FILE_SYSTEM_H_INCLUDED -#include "slang.h" +#include "../../include/slang.h" #include "slang-com-helper.h" #include "slang-com-ptr.h" diff --git a/source/core/slang-free-list.h b/source/core/slang-free-list.h index 5c4e55607..97aee5bc9 100644 --- a/source/core/slang-free-list.h +++ b/source/core/slang-free-list.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_FREE_LIST_H #define SLANG_CORE_FREE_LIST_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-common.h" diff --git a/source/core/slang-hash.h b/source/core/slang-hash.h index 7992e91fa..784f7fd23 100644 --- a/source/core/slang-hash.h +++ b/source/core/slang-hash.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_HASH_H #define SLANG_CORE_HASH_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-math.h" #include "../../external/unordered_dense/include/ankerl/unordered_dense.h" #include diff --git a/source/core/slang-hex-dump-util.h b/source/core/slang-hex-dump-util.h index 037355f2d..6dcabf2ef 100644 --- a/source/core/slang-hex-dump-util.h +++ b/source/core/slang-hex-dump-util.h @@ -5,7 +5,7 @@ #include "slang-string.h" #include "slang-list.h" -#include "slang.h" +#include "../../include/slang.h" namespace Slang { diff --git a/source/core/slang-http.h b/source/core/slang-http.h index 11d834bd8..09f2fd91e 100644 --- a/source/core/slang-http.h +++ b/source/core/slang-http.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_HTTP_H #define SLANG_CORE_HTTP_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-string.h" #include "slang-list.h" diff --git a/source/core/slang-linked-list.h b/source/core/slang-linked-list.h index d442b4d12..496eddb1a 100644 --- a/source/core/slang-linked-list.h +++ b/source/core/slang-linked-list.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_LINKED_LIST_H #define SLANG_CORE_LINKED_LIST_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-allocator.h" #include diff --git a/source/core/slang-list.h b/source/core/slang-list.h index b1c67e438..0b7b803bf 100644 --- a/source/core/slang-list.h +++ b/source/core/slang-list.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_LIST_H #define SLANG_CORE_LIST_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-allocator.h" #include "slang-math.h" diff --git a/source/core/slang-memory-arena.h b/source/core/slang-memory-arena.h index cbd0fdc56..1d899b064 100644 --- a/source/core/slang-memory-arena.h +++ b/source/core/slang-memory-arena.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_MEMORY_ARENA_H #define SLANG_CORE_MEMORY_ARENA_H -#include "slang.h" +#include "../../include/slang.h" #include #include diff --git a/source/core/slang-persistent-cache.h b/source/core/slang-persistent-cache.h index 02c74be79..1411b9094 100644 --- a/source/core/slang-persistent-cache.h +++ b/source/core/slang-persistent-cache.h @@ -1,5 +1,5 @@ #pragma once -#include "slang.h" +#include "../../include/slang.h" #include "../core/slang-crypto.h" #include "../core/slang-io.h" #include "../core/slang-string.h" diff --git a/source/core/slang-platform.h b/source/core/slang-platform.h index f8701e305..57a624e6d 100644 --- a/source/core/slang-platform.h +++ b/source/core/slang-platform.h @@ -2,7 +2,7 @@ #ifndef SLANG_CORE_PLATFORM_H #define SLANG_CORE_PLATFORM_H -#include "slang.h" +#include "../../include/slang.h" #include "../core/slang-string.h" namespace Slang diff --git a/source/core/slang-random-generator.h b/source/core/slang-random-generator.h index fa83fec3b..be416c8e2 100644 --- a/source/core/slang-random-generator.h +++ b/source/core/slang-random-generator.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_RANDOM_GENERATOR_H #define SLANG_CORE_RANDOM_GENERATOR_H -#include "slang.h" +#include "../../include/slang.h" #include #include diff --git a/source/core/slang-shared-library.h b/source/core/slang-shared-library.h index d6c1618ec..ede5b1615 100644 --- a/source/core/slang-shared-library.h +++ b/source/core/slang-shared-library.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_SHARED_LIBRARY_H #define SLANG_CORE_SHARED_LIBRARY_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-com-helper.h" #include "slang-com-ptr.h" diff --git a/source/core/slang-short-list.h b/source/core/slang-short-list.h index 66165fc72..f40223a32 100644 --- a/source/core/slang-short-list.h +++ b/source/core/slang-short-list.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_SHORT_LIST_H #define SLANG_CORE_SHORT_LIST_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-allocator.h" #include "slang-math.h" diff --git a/source/core/slang-smart-pointer.h b/source/core/slang-smart-pointer.h index 5cf8e4323..2f1f485dc 100644 --- a/source/core/slang-smart-pointer.h +++ b/source/core/slang-smart-pointer.h @@ -5,7 +5,7 @@ #include "slang-hash.h" #include "slang-type-traits.h" -#include "slang.h" +#include "../../include/slang.h" namespace Slang { diff --git a/source/core/slang-type-convert-util.h b/source/core/slang-type-convert-util.h index 70565b896..0fd221450 100644 --- a/source/core/slang-type-convert-util.h +++ b/source/core/slang-type-convert-util.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_TYPE_CONVERT_UTIL_H #define SLANG_CORE_TYPE_CONVERT_UTIL_H -#include "slang.h" +#include "../../include/slang.h" namespace Slang { diff --git a/source/core/slang-type-text-util.h b/source/core/slang-type-text-util.h index 6d07e7d58..1e1c25364 100644 --- a/source/core/slang-type-text-util.h +++ b/source/core/slang-type-text-util.h @@ -1,7 +1,7 @@ #ifndef SLANG_CORE_TYPE_TEXT_UTIL_H #define SLANG_CORE_TYPE_TEXT_UTIL_H -#include "slang.h" +#include "../../include/slang.h" #include "slang-string.h" #include "slang-array-view.h" -- cgit v1.2.3