Don't link standard C/C++ statically + patch http upload for windows
Some checks failed
CI / cache (push) Has been cancelled
CI / Build (clang, clang++, ubuntu-22.04, true, accelerator_linux) (push) Has been cancelled
CI / Build (clang, clang++, ubuntu-latest, false, none) (push) Has been cancelled
CI / Build (msvc, msvc, windows-latest, true, accelerator_windows) (push) Has been cancelled

This commit is contained in:
Kenzzer 2025-09-22 12:19:59 +00:00
parent 04a6eeeedb
commit 38f7e5d6f2
No known key found for this signature in database
GPG Key ID: 64C3FD4332686DC1
3 changed files with 16 additions and 3 deletions

View File

@ -32,7 +32,6 @@ class AcceleratorConfig(object):
self.libbreakpad_client = None
self.libbreakpad = None
self.libdisasm = None
self.breakpad_patch = None
self.targets = []
self.target_archs = set()
self.breakpad_config = dict()
@ -119,7 +118,7 @@ class AcceleratorConfig(object):
'-Wno-implicit-exception-spec-mismatch'
]
cxx.postlink += ['-pthread', '-static-libstdc++', '-static-libgcc']
cxx.postlink += ['-pthread', '-Wl,-z,noexecstack']
if builder.options.opt == '1':
cxx.cflags += ['-O3']

View File

@ -0,0 +1,13 @@
diff --git a/src/common/windows/http_upload.cc b/src/common/windows/http_upload.cc
index bd48a233..cd12a24e 100644
--- a/src/common/windows/http_upload.cc
+++ b/src/common/windows/http_upload.cc
@@ -536,7 +536,7 @@ namespace {
return false;
}
}
- request_body->append("--" + boundary_str + "--\r\n");
+ request_body->append("\r\n--" + boundary_str + "--\r\n");
return true;
}
}

3
third_party/Patch vendored
View File

@ -38,7 +38,8 @@ patches = AddFilesFromDir(os.path.join(builder.currentSourcePath, '..', 'patches
"0002-Write-FUNC-records-instead-of-PUBLIC-for-ELF-symbols.patch",
"0003-Support-compilation-on-VS-2015.patch",
"0004-Fix-Linux-a-out-include.patch",
"0005-Add-LSS.patch"
"0005-Add-LSS.patch",
"0006-Fix-multipart-missing-CRLF.patch"
])
# Reset the breakpad directory before applying patches