mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
Merged 2.056
This commit is contained in:
commit
014d6bdd4d
65 changed files with 6538 additions and 1122 deletions
14
gen/main.cpp
14
gen/main.cpp
|
@ -127,8 +127,22 @@ static void initFromString(char*& dest, const cl::opt<std::string>& src) {
|
|||
}
|
||||
}
|
||||
|
||||
#if _WIN32
|
||||
extern "C"
|
||||
{
|
||||
extern int _xi_a;
|
||||
extern int _end;
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
mem.init(); // initialize storage allocator
|
||||
mem.setStackBottom(&argv);
|
||||
#if _WIN32
|
||||
mem.addroots((char *)&_xi_a, (char *)&_end);
|
||||
#endif
|
||||
|
||||
// stack trace on signals
|
||||
llvm::sys::PrintStackTraceOnErrorSignal();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue