Skip to content

Commit 880c36d

Browse files
authored
Merge pull request #4 from simdutf/dlemire/v101
Preparing patch release
2 parents 0ec5497 + 1bce6b8 commit 880c36d

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Ubuntu 22.04 CI (GCC 11) with Sanitizers
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ubuntu-build:
7+
if: >-
8+
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
9+
! contains(toJSON(github.event.commits.*.message), '[skip github]')
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Use cmake
14+
run: |
15+
mkdir builddebug &&
16+
cd builddebug &&
17+
cmake -DIS_UTF8_SANITIZE=ON -DCMAKE_BUILD_TYPE=Debug .. &&
18+
cmake --build . &&
19+
ctest -j --output-on-failure -LE explicitonly &&
20+
cd .. &&
21+
mkdir build &&
22+
cd build &&
23+
cmake -DIS_UTF8_SANITIZE=ON .. &&
24+
cmake --build . &&
25+
ctest -j --output-on-failure -LE explicitonly

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.15)
33
project(is_utf8
44
DESCRIPTION "Fast UTF-8 Validation"
55
LANGUAGES CXX
6-
VERSION 1.0.0
6+
VERSION 1.0.1
77
)
88

99
include(GNUInstallDirs)
@@ -26,7 +26,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
2626
set(CMAKE_CXX_EXTENSIONS OFF)
2727
set(CMAKE_MACOSX_RPATH OFF)
2828

29-
set(IS_UTF8_LIB_VERSION "1.0.0" CACHE STRING "is_utf8 library version")
29+
set(IS_UTF8_LIB_VERSION "1.0.1" CACHE STRING "is_utf8 library version")
3030
set(IS_UTF8_LIB_SOVERSION "1" CACHE STRING "is_utf8 library soversion")
3131

3232
set(IS_UTF8_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

src/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ add_library(is_utf8 STATIC is_utf8.cpp)
77
target_include_directories(is_utf8 PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> )
88
target_include_directories(is_utf8 PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
99

10+
if(IS_UTF8_SANITIZE)
11+
target_compile_options(is_utf8 INTERFACE -fsanitize=address -fno-omit-frame-pointer -fno-sanitize-recover=all)
12+
target_compile_definitions(is_utf8 INTERFACE ASAN_OPTIONS=detect_leaks=1)
13+
target_link_libraries(is_utf8 INTERFACE -fsanitize=address -fno-omit-frame-pointer -fno-sanitize-recover=all)
14+
endif()
15+
1016
if(MSVC)
1117
if("${MSVC_TOOLSET_VERSION}" STREQUAL "140")
1218
target_compile_options(is_utf8 INTERFACE /W0 /sdl)

0 commit comments

Comments
 (0)