Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
0118009b
Commit
0118009b
authored
May 29, 2017
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer clang/clang++ over gcc/g++ (if installed)
parent
99f3ab14
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
configure.ac
configure.ac
+9
-0
No files found.
configure.ac
View file @
0118009b
...
@@ -19,6 +19,12 @@ LIBPLIST_SO_VERSION=4:0:1
...
@@ -19,6 +19,12 @@ LIBPLIST_SO_VERSION=4:0:1
AC_SUBST(LIBPLIST_SO_VERSION)
AC_SUBST(LIBPLIST_SO_VERSION)
# prefer clang if it is available and CC is not set
if test -z "$CC" && test -z "$CXX" && test -x "`which clang`"; then
CC=clang
CXX=clang++
fi
# Checks for programs.
# Checks for programs.
AC_PROG_CC
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CXX
...
@@ -162,6 +168,9 @@ AC_ARG_WITH([fuzzers],
...
@@ -162,6 +168,9 @@ AC_ARG_WITH([fuzzers],
[build_fuzzers=true],
[build_fuzzers=true],
[build_fuzzers=false])
[build_fuzzers=false])
if test "x$build_fuzzers" = "xtrue"; then
if test "x$build_fuzzers" = "xtrue"; then
if test "$CXX" != "clang++"; then
AC_MSG_WARN([building fuzzers requires clang/clang++ (continuing anyway)])
fi
AS_COMPILER_FLAG([-fsanitize=address], [
AS_COMPILER_FLAG([-fsanitize=address], [
SANITIZER_FLAGS+=" -fsanitize=address"
SANITIZER_FLAGS+=" -fsanitize=address"
ASAN_AVAILABLE=yes
ASAN_AVAILABLE=yes
...
...
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