mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Use clang, not /usr/bin/cc on FreeBSD and macOS.
While /usr/bin/cc _is_ clang on those platforms, some static analyzers get confused if we don't run it as clang.
This commit is contained in:
parent
da7a5ecabd
commit
7ac13204f2
@ -136,9 +136,9 @@ fi
|
|||||||
if [ "$crossbuild" = "false" ]; then
|
if [ "$crossbuild" = "false" ]; then
|
||||||
case "$osversion" in
|
case "$osversion" in
|
||||||
FreeBSD*|macos*)
|
FreeBSD*|macos*)
|
||||||
# Use the system compiler on FreeBSD and macOS
|
# Use clang, not gcc, on FreeBSD and macOS
|
||||||
if [ -z "$CC" -a -x /usr/bin/cc ]; then
|
if [ -z "$CC" ]; then
|
||||||
CC=/usr/bin/cc; export CC
|
CC=clang; export CC
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user