mirror of
https://github.com/asherkin/accelerator.git
synced 2025-12-06 18:08:30 +00:00
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
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:
parent
04a6eeeedb
commit
38f7e5d6f2
@ -32,7 +32,6 @@ class AcceleratorConfig(object):
|
|||||||
self.libbreakpad_client = None
|
self.libbreakpad_client = None
|
||||||
self.libbreakpad = None
|
self.libbreakpad = None
|
||||||
self.libdisasm = None
|
self.libdisasm = None
|
||||||
self.breakpad_patch = None
|
|
||||||
self.targets = []
|
self.targets = []
|
||||||
self.target_archs = set()
|
self.target_archs = set()
|
||||||
self.breakpad_config = dict()
|
self.breakpad_config = dict()
|
||||||
@ -119,7 +118,7 @@ class AcceleratorConfig(object):
|
|||||||
'-Wno-implicit-exception-spec-mismatch'
|
'-Wno-implicit-exception-spec-mismatch'
|
||||||
]
|
]
|
||||||
|
|
||||||
cxx.postlink += ['-pthread', '-static-libstdc++', '-static-libgcc']
|
cxx.postlink += ['-pthread', '-Wl,-z,noexecstack']
|
||||||
|
|
||||||
if builder.options.opt == '1':
|
if builder.options.opt == '1':
|
||||||
cxx.cflags += ['-O3']
|
cxx.cflags += ['-O3']
|
||||||
|
|||||||
13
patches/0006-Fix-multipart-missing-CRLF.patch
Normal file
13
patches/0006-Fix-multipart-missing-CRLF.patch
Normal 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
3
third_party/Patch
vendored
@ -38,7 +38,8 @@ patches = AddFilesFromDir(os.path.join(builder.currentSourcePath, '..', 'patches
|
|||||||
"0002-Write-FUNC-records-instead-of-PUBLIC-for-ELF-symbols.patch",
|
"0002-Write-FUNC-records-instead-of-PUBLIC-for-ELF-symbols.patch",
|
||||||
"0003-Support-compilation-on-VS-2015.patch",
|
"0003-Support-compilation-on-VS-2015.patch",
|
||||||
"0004-Fix-Linux-a-out-include.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
|
# Reset the breakpad directory before applying patches
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user