Pass SANITIZER_LINK_OPTIONS to CGO

This commit is contained in:
Andrew Noyes 2021-03-09 17:54:34 +00:00
parent b5084c634d
commit fb8d021995

View File

@ -43,7 +43,7 @@ set(go_options_file ${GO_DEST}/src/fdb/generated.go)
set(go_env GOPATH=${GOPATH} set(go_env GOPATH=${GOPATH}
C_INCLUDE_PATH=${CMAKE_BINARY_DIR}/bindings/c/foundationdb:${CMAKE_SOURCE_DIR}/bindings/c C_INCLUDE_PATH=${CMAKE_BINARY_DIR}/bindings/c/foundationdb:${CMAKE_SOURCE_DIR}/bindings/c
CGO_LDFLAGS=-L${CMAKE_BINARY_DIR}/lib) CGO_LDFLAGS=-L${CMAKE_BINARY_DIR}/lib\ ${SANITIZER_LINK_OPTIONS})
foreach(src_file IN LISTS SRCS) foreach(src_file IN LISTS SRCS)
set(dest_file ${GO_DEST}/${src_file}) set(dest_file ${GO_DEST}/${src_file})