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
5
third_party/python/Lib/ntpath.py
vendored
5
third_party/python/Lib/ntpath.py
vendored
|
@ -664,10 +664,7 @@ def commonpath(paths):
|
|||
try:
|
||||
# GetFinalPathNameByHandle is available starting with Windows 6.0.
|
||||
# Windows XP and non-Windows OS'es will mock _getfinalpathname.
|
||||
if sys.getwindowsversion()[:2] >= (6, 0):
|
||||
_getfinalpathname = posix._getfinalpathname
|
||||
else:
|
||||
raise ImportError
|
||||
_getfinalpathname = posix._getfinalpathname
|
||||
except (AttributeError, ImportError, OSError):
|
||||
# On Windows XP and earlier, two files are the same if their absolute
|
||||
# pathnames are the same.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue