This commit is contained in:
parent
eb88a317eb
commit
d63357df90
1 changed files with 2 additions and 2 deletions
|
|
@ -105,9 +105,7 @@ namespace Crafter {
|
||||||
std::filesystem::path GetPath() {
|
std::filesystem::path GetPath() {
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
DWORD length = GetModuleFileNameA(NULL, path, MAX_PATH);
|
DWORD length = GetModuleFileNameA(NULL, path, MAX_PATH);
|
||||||
std::cout << length << std::endl;
|
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
std::cout << "failed" << std::endl;
|
|
||||||
throw std::runtime_error("Failed to get executable path");
|
throw std::runtime_error("Failed to get executable path");
|
||||||
}
|
}
|
||||||
path[length] = '\0';
|
path[length] = '\0';
|
||||||
|
|
@ -298,7 +296,9 @@ namespace Crafter {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
void BuildStdPcm(const Project& project, const Configuration& config) {
|
void BuildStdPcm(const Project& project, const Configuration& config) {
|
||||||
|
std::cout << "bruh" << std::endl;
|
||||||
std::cout << config.target << std::endl;
|
std::cout << config.target << std::endl;
|
||||||
|
std::cout << "bruh2" << std::endl;
|
||||||
if(config.target == "x86_64-pc-linux-gnu") {
|
if(config.target == "x86_64-pc-linux-gnu") {
|
||||||
BuildGnuStdPcm(project, config);
|
BuildGnuStdPcm(project, config);
|
||||||
} else if(config.target == "x86_64-w64-mingw32") {
|
} else if(config.target == "x86_64-w64-mingw32") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue