forked from python-rapidjson/python-rapidjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add this branch to those the workflow runs for Move command line options and configuration in setup.py to CMakeLists.txt
- Loading branch information
Showing
5 changed files
with
60 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
set -e | ||
# export ASAN_OPTIONS=symbolize=1 | ||
# export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer) | ||
## python setup.py develop --rj-include-dir=../rapidjson/include/ --with-asan | ||
pip install -v -e . | ||
# pip install --rj-include-dir=../rapidjson/include/ -e . # --with-asan -e . | ||
## export DYLD_INSERT_LIBRARIES=/Users/langmm/mambaforge/envs/pyrj/lib/clang/14.0.6/lib/darwin/libclang_rt.asan_osx_dynamic.dylib | ||
# export DYLD_INSERT_LIBRARIES=$(clang -print-file-name=libclang_rt.asan_osx_dynamic.dylib) | ||
export ASAN_OPTIONS=symbolize=1 | ||
export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer) | ||
pip install --config-settings=cmake.define.RAPIDJSON_INCLUDE_DIRS=../rapidjson/include/ \ | ||
--config-settings=cmake.define.YGG_BUILD_ASAN:BOOL=ON \ | ||
--config-settings=cmake.define.YGG_BUILD_UBSAN:BOOL=ON \ | ||
-v -e . | ||
# export DYLD_INSERT_LIBRARIES=/Users/langmm/mambaforge/envs/pyrj/lib/clang/14.0.6/lib/darwin/libclang_rt.asan_osx_dynamic.dylib | ||
export DYLD_INSERT_LIBRARIES=$(clang -print-file-name=libclang_rt.asan_osx_dynamic.dylib) | ||
python -m pytest -svx tests/ | ||
# make -C docs doctest -e PYTHON=$(which python3) -e DYLD_INSERT_LIBRARIES=$(clang -print-file-name=libclang_rt.asan_osx_dynamic.dylib) | ||
make -C docs doctest -e PYTHON=$(which python3) -e DYLD_INSERT_LIBRARIES=$(clang -print-file-name=libclang_rt.asan_osx_dynamic.dylib) |