| 129 | |
| 130 | |
| 131 | BootApp::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 | |
| 179 | BootApp::~BootApp() |
| 180 | { |
nothing calls this directly
no test coverage detected