google / cctz

CCTZ is a C++ library for translating between absolute and civil times using the rules of a time zone.
Apache License 2.0
596 stars 166 forks source link

change normal lock to readwrite lock in LoadTimeZone func #214

Closed aaawuanjun closed 2 years ago

aaawuanjun commented 2 years ago

issue #212


This change is Reviewable

aaawuanjun commented 2 years ago

how to compile? 1、use source code root dir's Makefile env requires:

g++ version needs bigger than 7.x, I use gcc version: 10.x

image use below command: make

2、use source code root dir's CMakeLists.txt env requires:

cmake version should be bigger than 3.1 gcc version needs bigger than 7.x, I use gcc version: 10.x

image

use below command:

mkdir mybuild
cd mybuild
cmake ../ -DBUILD_TESTING=OFF -DCMAKE_CXX_STANDARD=17
make

current dir will generate static library "libcctz.a" image