From 0bc4a914439260a1d6e581907e2db9b9a34f093f Mon Sep 17 00:00:00 2001 From: MikePopoloski Date: Thu, 7 Mar 2024 09:08:24 -0500 Subject: [PATCH] Fix Windows shared lib build --- include/slang/ast/Compilation.h | 4 ++-- include/slang/ast/symbols/CompilationUnitSymbols.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/slang/ast/Compilation.h b/include/slang/ast/Compilation.h index f6bb947b3..bbd36547b 100644 --- a/include/slang/ast/Compilation.h +++ b/include/slang/ast/Compilation.h @@ -190,7 +190,7 @@ struct SLANG_EXPORT CompilationOptions { /// Information about how a bind directive applies to some definition /// or specific target node. -struct BindDirectiveInfo { +struct SLANG_EXPORT BindDirectiveInfo { /// The syntax node of the bind directive. const syntax::BindDirectiveSyntax* bindSyntax = nullptr; @@ -221,7 +221,7 @@ struct BindDirectiveInfo { /// bind directives should be applied. These are assembled /// from defparam values, bind directives, and command-line /// specified overrides. -struct HierarchyOverrideNode { +struct SLANG_EXPORT HierarchyOverrideNode { /// A map of parameters in the current scope to override. /// The key is the syntax node representing the parameter and the value is a pair, /// the first element of which is the value to set the parameter to and the second diff --git a/include/slang/ast/symbols/CompilationUnitSymbols.h b/include/slang/ast/symbols/CompilationUnitSymbols.h index eda11ad6c..3b513045b 100644 --- a/include/slang/ast/symbols/CompilationUnitSymbols.h +++ b/include/slang/ast/symbols/CompilationUnitSymbols.h @@ -7,6 +7,7 @@ //------------------------------------------------------------------------------ #pragma once +#include "slang/ast/Compilation.h" #include "slang/ast/Scope.h" #include "slang/ast/Symbol.h" #include "slang/syntax/SyntaxFwd.h" @@ -21,7 +22,6 @@ class ConfigBlockSymbol; class Expression; class InstanceSymbol; class Type; -struct BindDirectiveInfo; /// The root of a single compilation unit. class SLANG_EXPORT CompilationUnitSymbol : public Symbol, public Scope {