Skip to content

Commit

Permalink
export ASAN_OPTIONS=detect_container_overflow=0
Browse files Browse the repository at this point in the history
  • Loading branch information
pachadotdev committed Nov 10, 2024
1 parent ddf1ff4 commit b9f7326
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion rpkg/configure
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ if [ "$PKGCONFIG_CFLAGS" ] || [ "$PKGCONFIG_LIBS" ]; then
PKG_LIBS=${PKGCONFIG_LIBS}
fi

# Uncomment CXXFLAGS in Makevars.in to debug
CXXFLAGS="-stdlib=libc++"
# CXXFLAGS="-O0 -g -stdlib=libc++"

LDFLAGS="-stdlib=libc++"

# False positive error in ASAN
# see https://github.com/microsoft/DirectXShaderCompiler/issues/created_by/5971)
export ASAN_OPTIONS=detect_container_overflow=0

# Write to Makevars using sed to replace placeholders
sed -e "s|@cflags@|$PKG_CFLAGS|" \
-e "s|@libs@|$PKG_LIBS|" \
Expand Down
2 changes: 1 addition & 1 deletion rpkg/src/Makevars
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PKG_CPPFLAGS=-Ivendor -Iredatamlib -Iredatamlib/entities -Iredatamlib/exporters -Iredatamlib/readers
PKG_LIBS=-Lvendor -Lredatamlib
# CXXFLAGS=-g -O2 -ffile-prefix-map=/build/r-base-2y82rL/r-base-4.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -UNDEBUG -Wall -pedantic -g -O0 -fdiagnostics-color=always
# CXXFLAGS=-stdlib=libc++
LDFLAGS=-stdlib=libc++

# Explicitly list all source files
Expand Down

0 comments on commit b9f7326

Please sign in to comment.