Merge branch 'master' of https://github.com/sureshsundriyal/lnav into sureshsundriyal-master

This commit is contained in:
Timothy Stack 2020-09-18 09:00:57 -07:00
commit e6c8f49c29
3 changed files with 19 additions and 3 deletions

View File

@ -133,7 +133,24 @@ AS_CASE(["$host_os"],
)
)
AC_CHECK_HEADERS(execinfo.h pty.h util.h zlib.h bzlib.h libutil.h sys/ttydefaults.h x86intrin.h)
AC_CHECK_HEADERS(execinfo.h pty.h util.h zlib.h bzlib.h libutil.h sys/ttydefaults.h)
dnl Experimental SIMD features.
AC_ARG_ENABLE([simd],
AS_HELP_STRING([--enable-simd], [Try and enable simd optimizations]),
[
AS_CASE(["$enable_simd"],
[no], [enable_simd="no"],
[yes | ""],[enable_simd="yes"])
],
[]
)
AS_IF([test "x$enable_simd" = "xyes"], [
AC_CHECK_HEADERS(x86intrin.h)
])
LNAV_WITH_JEMALLOC

View File

@ -46,7 +46,7 @@ if test x"${OS}" != x"FreeBSD"; then
TARGET_FILE='/vagrant/lnav-musl.zip'
../lnav/configure \
CFLAGS='-static -no-pie -s' \
CXXFLAGS='-static -msse4 -U__unused -no-pie -s' \
CXXFLAGS='-static -U__unused -no-pie -s' \
LDFLAGS="-L${FAKE_ROOT}/lib" \
CPPFLAGS="-I${FAKE_ROOT}/include" \
--enable-static

View File

@ -655,7 +655,6 @@ Result<line_info, string> line_buffer::load_next_line(file_range prev_line)
/* ... look for the end-of-line or end-of-file. */
ssize_t utf8_end = -1;
#undef HAVE_X86INTRIN_H
#ifdef HAVE_X86INTRIN_H
if (!validate_utf8_fast(line_start, retval.li_file_range.fr_size, &utf8_end)) {
retval.li_valid_utf = false;