You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/08/10 19:18:17 UTC

[GitHub] [trafficserver] ywkaras commented on a diff in pull request #9004: Clean up spurious errors in output of ASAN build.

ywkaras commented on code in PR #9004:
URL: https://github.com/apache/trafficserver/pull/9004#discussion_r942814953


##########
configure.ac:
##########
@@ -996,14 +996,14 @@ if test "x${enable_asan}" = "xyes"; then
   if test "x${enable_tsan}" = "xyes" -o "x${enable_tsan}" = "xstatic"; then
     AC_MSG_ERROR(Cannot have ASAN and TSAN options at the same time, pick one)
   fi
-  TS_ADDTO(AM_CFLAGS, [-fno-omit-frame-pointer -fsanitize=address])
-  TS_ADDTO(AM_CXXFLAGS, [-fno-omit-frame-pointer -fsanitize=address])
+  TS_ADDTO(AM_CFLAGS, [-fno-omit-frame-pointer -fsanitize=address -DIS_ASAN_BUILD])

Review Comment:
   I originally wanted to add an "is ASAN build" flag to ink_config.h, but I couldn't figure out how to do it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org