commit | 73adb607aacca9c90a57c9aede7717ff0cdaaa68 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 18:07:40 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 18:14:13 2015 +0200 |
tree | 17d60021522237562e8644e17256435e941d36e0 | |
parent | d2bfa795fb62c80113acecc6b04ee69f6a1afb3b [diff] |
yin parser OPTIMIZE optimize usage of LY_TREE_FOR* loops It is not always possible, but if we can use LY_TREE_FOR instead of LY_TREE_FOR_SAFE and postpone lyxml_free_elem() to the superior node, it is more efficient. There are also several other code optimization.
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
$ cmake . $ make # make install
There are two build modes:
The Debug
mode is currently used as the default one. to switch to the Release
mode, enter at the command line:
$ cmake -D CMAKE_BUILD_TYPE:String="Release" .
Set CC variable:
$ CC=/usr/bin/clang cmake .
Note that, with CMake, if you want to change the compiler or its options after you already ran CMake, you need to clear its cache first. For your convenience, this action is available as cclean
target of the Makefile:
$ make cclean $ CC=gcc CFLAGS='-fstack-protector-strong -Wa,--noexecstack' cmake .