mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Merge branch 'move_so_tmp_location' of https://github.com/Luflosi/kitty
This commit is contained in:
5
setup.py
5
setup.py
@@ -467,8 +467,9 @@ def compile_c_extension(kenv, module, incremental, compilation_database, sources
|
|||||||
todo[original_src] = cmd
|
todo[original_src] = cmd
|
||||||
if todo:
|
if todo:
|
||||||
parallel_run(todo)
|
parallel_run(todo)
|
||||||
dest = os.path.join(base, module + '.temp.so')
|
dest = os.path.join(build_dir, module + '.so')
|
||||||
real_dest = dest[:-len('.temp.so')] + '.so'
|
real_dest = os.path.join(base, module + '.so')
|
||||||
|
os.makedirs(os.path.dirname(dest), exist_ok=True)
|
||||||
if not incremental or newer(real_dest, *objects):
|
if not incremental or newer(real_dest, *objects):
|
||||||
# Old versions of clang don't like -pthread being passed to the linker
|
# Old versions of clang don't like -pthread being passed to the linker
|
||||||
# Don't treat linker warnings as errors (linker generates spurious
|
# Don't treat linker warnings as errors (linker generates spurious
|
||||||
|
|||||||
Reference in New Issue
Block a user