Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
@ -30,6 +30,7 @@ namespace CppSharp.Utils
options.Quiet = true;
options.GenerateDebugOutput = true;
options.GenerateSequentialLayout = true;
options.CheckSymbols = true;
var testModule = options.AddModule(name);
testModule.SharedLibraryName = $"{name}.Native";
@ -95,6 +95,9 @@ namespace CppSharp.Passes
{
if (!Context.Symbols.FindLibraryBySymbol(mangledDecl.Mangled, out _))
if (mangledDecl is Variable variable && variable.IsConstExpr)
return true;
Diagnostics.Warning("Symbol not found: {0}", mangledDecl.Mangled);
return false;
}