MCPcopy Create free account
hub / github.com/beefytech/Beef / BootApp

Method BootApp

BeefBoot/BootApp.cpp:131–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131BootApp::BootApp()
132{
133 Targets_Create();
134
135 mVerbosity = Verbosity_Normal;
136 mTargetType = BfTargetType_BeefConsoleApplication;
137
138 //char str[MAX_PATH];
139 //GetModuleFileNameA(NULL, str, MAX_PATH);
140 //mInstallDir = GetFileDir(str) + "/";
141
142 //getcwd(str, MAX_PATH);
143 //mStartupDir = str;
144 //mStartupDir += "/";
145
146 //mDoClean = false;
147 mHadCmdLine = false;
148 mShowedHelp = false;
149 mHadErrors = false;
150
151 mSystem = NULL;
152 mCompiler = NULL;
153 mProject = NULL;
154 mCELibProject = NULL;
155 mIsCERun = false;
156 mAsmKind = BfAsmKind_None;
157 mStartupObject = "Program";
158
159#ifdef BF_PLATFORM_WINDOWS
160 mOptLevel = BfOptLevel_OgPlus;
161 mToolset = BfToolsetType_Microsoft;
162#else
163 mOptLevel = BfOptLevel_O0;
164 mToolset = BfToolsetType_GNU;
165#endif
166 mEmitIR = false;
167
168#ifdef BF_PLATFORM_WINDOWS
169 mTargetTriple = "x86_64-pc-windows-msvc";
170#elif defined BF_PLATFORM_MACOS
171 mTargetTriple = "x86_64-apple-macosx10.8.0";
172#else
173 mTargetTriple = "x86_64-unknown-linux-gnu";
174#endif
175
176 GetConsoleColor(gConsoleFGColor, gConsoleBGColor);
177}
178
179BootApp::~BootApp()
180{

Callers

nothing calls this directly

Calls 2

Targets_CreateFunction · 0.85
GetConsoleColorFunction · 0.85

Tested by

no test coverage detected