mirror of https://github.com/neovim/neovim.git
Compare commits
5 Commits
cced6e502c
...
ac034146af
Author | SHA1 | Date |
---|---|---|
Lumynous | ac034146af | |
dundargoc | c18d7941ef | |
lumynou5 | 419b465075 | |
lumynou5 | 83a63c24f6 | |
lumynou5 | ab50ab3268 |
|
@ -50,11 +50,6 @@ file(GLOB DOCFILES CONFIGURE_DEPENDS ${PROJECT_SOURCE_DIR}/runtime/doc/*.txt)
|
|||
set_directory_properties(PROPERTIES
|
||||
EP_PREFIX "${DEPS_BUILD_DIR}")
|
||||
|
||||
find_program(CCACHE_PRG ccache)
|
||||
if(CCACHE_PRG)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER ${CMAKE_COMMAND} -E env CCACHE_SLOPPINESS=pch_defines,time_macros ${CCACHE_PRG})
|
||||
endif()
|
||||
|
||||
if(NOT CI_BUILD)
|
||||
set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||
endif()
|
||||
|
|
|
@ -23,6 +23,12 @@ if(POLICY CMP0092)
|
|||
list(APPEND DEPS_CMAKE_ARGS -D CMAKE_POLICY_DEFAULT_CMP0092=NEW)
|
||||
endif()
|
||||
|
||||
find_program(CACHE_PRG NAMES ccache sccache)
|
||||
if(CACHE_PRG)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER ${CMAKE_COMMAND} -E env CCACHE_SLOPPINESS=pch_defines,time_macros ${CACHE_PRG})
|
||||
list(APPEND DEPS_CMAKE_CACHE_ARGS -DCMAKE_C_COMPILER_LAUNCHER:STRING=${CMAKE_C_COMPILER_LAUNCHER})
|
||||
endif()
|
||||
|
||||
# MAKE_PRG
|
||||
if(UNIX)
|
||||
find_program(MAKE_PRG NAMES gmake make)
|
||||
|
@ -58,7 +64,8 @@ function(get_externalproject_options name DEPS_IGNORE_SHA)
|
|||
|
||||
set(EXTERNALPROJECT_OPTIONS
|
||||
DOWNLOAD_NO_PROGRESS TRUE
|
||||
EXTERNALPROJECT_OPTIONS URL ${${name_allcaps}_URL})
|
||||
EXTERNALPROJECT_OPTIONS URL ${${name_allcaps}_URL}
|
||||
CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS})
|
||||
|
||||
if(NOT ${DEPS_IGNORE_SHA})
|
||||
list(APPEND EXTERNALPROJECT_OPTIONS URL_HASH SHA256=${${name_allcaps}_SHA256})
|
||||
|
|
|
@ -171,7 +171,17 @@ int pty_process_spawn(PtyProcess *ptyproc)
|
|||
Process *proc = (Process *)ptyproc;
|
||||
assert(proc->err.closed);
|
||||
uv_signal_start(&proc->loop->children_watcher, chld_handler, SIGCHLD);
|
||||
ptyproc->winsize = (struct winsize){ ptyproc->height, ptyproc->width, 0, 0 };
|
||||
if (isatty(1)) {
|
||||
ioctl(1, TIOCGWINSZ, &ptyproc->winsize);
|
||||
ptyproc->winsize = (struct winsize){
|
||||
ptyproc->height,
|
||||
ptyproc->width,
|
||||
(ptyproc->winsize.ws_xpixel / ptyproc->winsize.ws_col) * ptyproc->width,
|
||||
(ptyproc->winsize.ws_ypixel / ptyproc->winsize.ws_row) * ptyproc->height,
|
||||
};
|
||||
} else {
|
||||
ptyproc->winsize = (struct winsize){ ptyproc->height, ptyproc->width, 0, 0 };
|
||||
}
|
||||
uv_disable_stdio_inheritance();
|
||||
int master;
|
||||
int pid = forkpty(&master, NULL, &termios_default, &ptyproc->winsize);
|
||||
|
@ -232,7 +242,13 @@ const char *pty_process_tty_name(PtyProcess *ptyproc)
|
|||
void pty_process_resize(PtyProcess *ptyproc, uint16_t width, uint16_t height)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
ptyproc->winsize = (struct winsize){ height, width, 0, 0 };
|
||||
ioctl(ptyproc->tty_fd, TIOCGWINSZ, &ptyproc->winsize);
|
||||
ptyproc->winsize = (struct winsize){
|
||||
height,
|
||||
width,
|
||||
(ptyproc->winsize.ws_xpixel / ptyproc->winsize.ws_col) * width,
|
||||
(ptyproc->winsize.ws_ypixel / ptyproc->winsize.ws_row) * height,
|
||||
};
|
||||
ioctl(ptyproc->tty_fd, TIOCSWINSZ, &ptyproc->winsize);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue