Add a SWIFT_RUNTIME_MACHO_NO_DYLD stdlib mode that doesn't dynamically look up sections in modules, and only assumes a single static module (#33441)

This commit is contained in:
Kuba (Brecka) Mracek
2020-08-18 11:46:42 -07:00
committed by GitHub
parent d463c7933e
commit db18deaf91
9 changed files with 126 additions and 18 deletions

View File

@@ -137,7 +137,7 @@ static bool getSymbolNameAddr(llvm::StringRef libraryName,
void swift::dumpStackTraceEntry(unsigned index, void *framePC,
bool shortOutput) {
#if SWIFT_SUPPORTS_BACKTRACE_REPORTING
#if SWIFT_SUPPORTS_BACKTRACE_REPORTING && !defined(SWIFT_RUNTIME_MACHO_NO_DYLD)
SymbolInfo syminfo;
// 0 is failure for lookupSymbol