Skip to content

Commit 441eea1

Browse files
committed
properly support unix32-unsigned and unix64-unsigned platforms
1 parent 5daf1b2 commit 441eea1

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -957,14 +957,6 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
957957
mLogger.printError(errstr);
958958
return Result::Fail;
959959
}
960-
961-
// TODO: remove
962-
// these are loaded via external files and thus have Settings::PlatformFile set instead.
963-
// override the type so they behave like the regular platforms.
964-
if (platform == "unix32-unsigned")
965-
mSettings.platform.type = Platform::Type::Unix32;
966-
else if (platform == "unix64-unsigned")
967-
mSettings.platform.type = Platform::Type::Unix64;
968960
}
969961

970962
// Write results in results.plist

lib/platform.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,18 @@ bool Platform::set(const std::string& platformstr, std::string& errstr, const st
111111
t = Type::Unix32;
112112
platformFile = platformstr;
113113
}
114+
else if (platformstr == "unix32-unsigned") {
115+
t = Type::Unix32;
116+
platformFile = platformstr;
117+
}
114118
else if (platformstr == "unix64") {
115119
t = Type::Unix64;
116120
platformFile = platformstr;
117121
}
122+
else if (platformstr == "unix64-unsigned") {
123+
t = Type::Unix64;
124+
platformFile = platformstr;
125+
}
118126
else if (platformstr == "native") {
119127
t = Type::Native;
120128
}

0 commit comments

Comments
 (0)