mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-04-24 06:39:57 +08:00

-Increase version to 1.0.1 -Update Javascript decode timing example -Fix async creation of DracoDecoderModule -fixes wasm parallel decoding -Introduce base class for geometric normal predictor -Added integer attribute interface to JavaScript decoder -Move loading Draco decoder into three.js Draco loader -Add compiler launcher support to CMake build -Add sanitizer support via CMake build -Check we are not reading past the end of the attribute buffer
20 lines
501 B
CMake
20 lines
501 B
CMake
if (NOT DRACO_CMAKE_SANITIZERS_CMAKE_)
|
|
set(DRACO_CMAKE_SANITIZERS_CMAKE_ 1)
|
|
|
|
if (MSVC OR NOT SANITIZE)
|
|
return ()
|
|
endif ()
|
|
|
|
include("${draco_root}/cmake/compiler_flags.cmake")
|
|
|
|
string(TOLOWER ${SANITIZE} SANITIZE)
|
|
|
|
# Require the sanitizer requested.
|
|
require_linker_flag("-fsanitize=${SANITIZE}")
|
|
require_compiler_flag("-fsanitize=${SANITIZE}" YES)
|
|
|
|
# Make callstacks accurate.
|
|
require_compiler_flag("-fno-omit-frame-pointer -fno-optimize-sibling-calls" YES)
|
|
|
|
endif() # DRACO_CMAKE_SANITIZERS_CMAKE_
|