summaryrefslogtreecommitdiff
path: root/src/mesh/assimp-master/contrib/draco/cmake/draco_sanitizer.cmake
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-04-16 11:55:54 -0500
committersanine <sanine.not@pm.me>2022-04-16 11:55:54 -0500
commit8fb7916a0d0cb007a4c3a4e6a31af58765268ca3 (patch)
tree52b5524a94a5b04e17a1fd7f8aca988ab6d0c75f /src/mesh/assimp-master/contrib/draco/cmake/draco_sanitizer.cmake
parentdb81b925d776103326128bf629cbdda576a223e7 (diff)
delete src/mesh/assimp-master
Diffstat (limited to 'src/mesh/assimp-master/contrib/draco/cmake/draco_sanitizer.cmake')
-rw-r--r--src/mesh/assimp-master/contrib/draco/cmake/draco_sanitizer.cmake32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/mesh/assimp-master/contrib/draco/cmake/draco_sanitizer.cmake b/src/mesh/assimp-master/contrib/draco/cmake/draco_sanitizer.cmake
deleted file mode 100644
index d2e41a6..0000000
--- a/src/mesh/assimp-master/contrib/draco/cmake/draco_sanitizer.cmake
+++ /dev/null
@@ -1,32 +0,0 @@
-if(DRACO_CMAKE_DRACO_SANITIZER_CMAKE_)
- return()
-endif() # DRACO_CMAKE_DRACO_SANITIZER_CMAKE_
-set(DRACO_CMAKE_DRACO_SANITIZER_CMAKE_ 1)
-
-# Handles the details of enabling sanitizers.
-macro(draco_configure_sanitizer)
- if(DRACO_SANITIZE AND NOT EMSCRIPTEN AND NOT MSVC)
- if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- if(DRACO_SANITIZE MATCHES "cfi")
- list(APPEND SAN_CXX_FLAGS "-flto" "-fno-sanitize-trap=cfi")
- list(APPEND SAN_LINKER_FLAGS "-flto" "-fno-sanitize-trap=cfi"
- "-fuse-ld=gold")
- endif()
-
- if(${CMAKE_SIZEOF_VOID_P} EQUAL 4
- AND DRACO_SANITIZE MATCHES "integer|undefined")
- list(APPEND SAN_LINKER_FLAGS "--rtlib=compiler-rt" "-lgcc_s")
- endif()
- endif()
-
- list(APPEND SAN_CXX_FLAGS "-fsanitize=${DRACO_SANITIZE}")
- list(APPEND SAN_LINKER_FLAGS "-fsanitize=${DRACO_SANITIZE}")
-
- # Make sanitizer callstacks accurate.
- list(APPEND SAN_CXX_FLAGS "-fno-omit-frame-pointer")
- list(APPEND SAN_CXX_FLAGS "-fno-optimize-sibling-calls")
-
- draco_test_cxx_flag(FLAG_LIST_VAR_NAMES SAN_CXX_FLAGS FLAG_REQUIRED)
- draco_test_exe_linker_flag(FLAG_LIST_VAR_NAME SAN_LINKER_FLAGS)
- endif()
-endmacro()