mirror of
https://github.com/decompals/wibo.git
synced 2025-10-16 15:15:10 +00:00
Docker build fixes
This commit is contained in:
parent
0bc80b6618
commit
5a2f8e2926
@ -1,3 +1,5 @@
|
|||||||
|
.cache/
|
||||||
.git/
|
.git/
|
||||||
.vscode/
|
.vscode/
|
||||||
build/
|
build/
|
||||||
|
tmp/
|
||||||
|
@ -498,8 +498,11 @@ HANDLE WIN_FUNC CreateThread(LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dw
|
|||||||
pthread_attr_init(&attr);
|
pthread_attr_init(&attr);
|
||||||
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
||||||
if (dwStackSize != 0) {
|
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?
|
// 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);
|
int rc = pthread_create(&obj->thread, &attr, threadTrampoline, startData);
|
||||||
|
@ -362,7 +362,8 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Resolve the guest program path
|
// 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()) {
|
if (resolvedGuestPath.empty()) {
|
||||||
fprintf(stderr, "Failed to resolve path to guest program %s\n", programName.c_str());
|
fprintf(stderr, "Failed to resolve path to guest program %s\n", programName.c_str());
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user