Docker build fixes

This commit is contained in:
Luke Street 2025-10-05 14:37:45 -06:00
parent 0bc80b6618
commit 5a2f8e2926
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,5 @@
.cache/
.git/
.vscode/
build/
tmp/

View File

@ -498,8 +498,11 @@ HANDLE WIN_FUNC CreateThread(LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dw
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (dwStackSize != 0) {
#ifdef PTHREAD_STACK_MIN
dwStackSize = std::max(dwStackSize, static_cast<SIZE_T>(PTHREAD_STACK_MIN));
#endif
// TODO: should we just ignore this?
pthread_attr_setstacksize(&attr, std::max(dwStackSize, static_cast<SIZE_T>(PTHREAD_STACK_MIN)));
pthread_attr_setstacksize(&attr, dwStackSize);
}
int rc = pthread_create(&obj->thread, &attr, threadTrampoline, startData);

View File

@ -362,7 +362,8 @@ int main(int argc, char **argv) {
}
// Resolve the guest program path
std::filesystem::path resolvedGuestPath = wibo::resolveExecutable(programName, true).value_or({});
std::filesystem::path resolvedGuestPath =
wibo::resolveExecutable(programName, true).value_or(std::filesystem::path{});
if (resolvedGuestPath.empty()) {
fprintf(stderr, "Failed to resolve path to guest program %s\n", programName.c_str());
return 1;