Skip to content

Commit

Permalink
Linux: fix compile error with openvdb
Browse files Browse the repository at this point in the history
  • Loading branch information
howetuft committed Jan 15, 2025
1 parent 6e51ce0 commit 6a0e63d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conan-profiles/conan-profile-Linux-X64
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ tools.build:cflags=["-march=x86-64-v3"]
tools.build:cxxflags=["-march=x86-64-v3"]

{% if 'SANITIZE' in os.environ -%}

tools.build:cflags+=["-fsanitize=address", "-fno-omit-frame-pointer"]
tools.build:cxxflags+=["-fsanitize=address", "-fno-omit-frame-pointer"]

tools.build:sharedlinkflags=["-fsanitize=address"]
tools.cmake.cmaketoolchain:extra_variables={ 'COMPILER_RT_BUILD_SHARED_ASAN':'ON' }
openvdb/*:tools.cmake.cmaketoolchain:extra_variables={ 'COMPILER_RT_BUILD_SHARED_ASAN':'ON', 'USE_CCACHE':'OFF' }

{% else -%}

openvdb/*:tools.cmake.cmaketoolchain:extra_variables={ 'USE_CCACHE':'OFF' }

{% endif %}

onetbb/*:tools.cmake.cmaketoolchain:extra_variables={ 'CMAKE_VERBOSE_MAKEFILE': 'ON' }

0 comments on commit 6a0e63d

Please sign in to comment.