Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
5c600f4c
Commit
5c600f4c
authored
Sep 15, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fuzzer detection
parent
24cf97dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
configure.ac
configure.ac
+22
-2
No files found.
configure.ac
View file @
5c600f4c
...
...
@@ -18,6 +18,9 @@ m4_ifdef([AM_PROG_AR],
[AM_PROG_AR],
[AC_PATH_PROG(AR, ar, ar, $PATH:/usr/ucb:/usr/ccs/bin)])
AC_PROG_CXX
CXXFLAGS="-std=c++11"
LT_INIT
dnl If you need to see the details, just run make V=1.
...
...
@@ -125,7 +128,7 @@ AS_IF([test "x$disable_test_ubsan" != xno], [
[
AS_IF([test "x$disable_test_ubsan" != xmaybe], [
AC_MSG_FAILURE(
[--disable-test-ubsan=$disable_test_ubsan is
given, but not supported on target
.
[--disable-test-ubsan=$disable_test_ubsan is
not supported on a target system
.
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#how-to-build])])
])
])
...
...
@@ -142,7 +145,7 @@ AS_IF([test "x$disable_test_asan" != xno], [
[
AS_IF([test "x$disable_test_asan" != xmaybe], [
AC_MSG_FAILURE(
[--disable-test-asan=$disable_test_asan is
given, but not supported on target
.
[--disable-test-asan=$disable_test_asan is
not supported on a target system
.
Check out https://clang.llvm.org/docs/AddressSanitizer.html#how-to-build])])
])
dnl Keep error messages nice. Also consider:
...
...
@@ -153,10 +156,27 @@ Check out https://clang.llvm.org/docs/AddressSanitizer.html#how-to-build])])
])
dnl Enable LibFuzzer, if supported.
LIBFUZZER_CFLAGS=""
AC_ARG_ENABLE([test-fuzzer],
[AS_HELP_STRING([--enable-test-fuzzer],
[Enable LLVM LibFuzzer for randomized testing])],
[enable_test_fuzzer=$enableval], [enable_test_fuzzer=no])
AS_IF([test "x$enable_test_fuzzer" != xno], [
AX_CHECK_COMPILE_FLAG([-fsanitize=fuzzer],
[LIBFUZZER_CFLAGS="${FUZZER_CFLAGS} -fsanitize=fuzzer"],
[
AC_MSG_FAILURE(
[--enable-test-fuzzer=$enable_test_fuzzer is not supported on a target system.
Check out http://llvm.org/docs/LibFuzzer.html])
])
])
TESTSUITE_CFLAGS="${TESTSUICE_CFLAGS} ${SANITIZER_CFLAGS}"
SKELETONS_CFLAGS="${SKELETONS_CFLAGS} ${SANITIZER_CFLAGS}"
AC_SUBST(ADD_CFLAGS)
AC_SUBST(LIBFUZZER_CFLAGS)
AC_SUBST(SANITIZER_CFLAGS)
AC_SUBST(TESTSUITE_CFLAGS)
AC_SUBST(SKELETONS_CFLAGS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment