mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Fix breakages in Linux-only build modes
- compile.com now polyfills -march=native which gcc/clang removed - Guarantee zero Windows code is linked into non-Windows binaries - MODE=tinylinux binaries are now back to being as tiny as ~4kb - Improve the runtime's stack allocation / alignment hack - GitHub Actions now tests Linux modes for assurance
This commit is contained in:
parent
0e4c828a8e
commit
3dc86ce154
32 changed files with 283 additions and 104 deletions
|
@ -946,6 +946,10 @@ os__getfinalpathname(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
PyObject *path;
|
||||
|
||||
if (!IsWindows()) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
if (!PyArg_Parse(arg, "U:_getfinalpathname", &path)) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1037,6 +1041,9 @@ os__getvolumepathname_impl(PyObject *module, PyObject *path);
|
|||
static PyObject *
|
||||
os__getvolumepathname(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
|
||||
{
|
||||
if (!IsWindows()) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
PyObject *return_value = NULL;
|
||||
static const char * const _keywords[] = {"path", NULL};
|
||||
static _PyArg_Parser _parser = {"U:_getvolumepathname", _keywords, 0};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue