From ce2d1c4e836acfc4d5cae175f71ee6de7d9acf21 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 12 Feb 2017 18:05:01 -0800 Subject: [PATCH] fix IWYU on FreeBSD --- build_tools/lint.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_tools/lint.fish b/build_tools/lint.fish index edea67e7f..f54b1dd7c 100755 --- a/build_tools/lint.fish +++ b/build_tools/lint.fish @@ -81,7 +81,7 @@ if set -q c_files[1] # expect those messages to be written to stdout. for c_file in $c_files switch $kernel_name - case Darwin + case Darwin FreeBSD include-what-you-use -Xiwyu --no_default_mappings -Xiwyu \ --mapping_file=build_tools/iwyu.osx.imp --std=c++11 \ $cppcheck_args $c_file 2>&1 @@ -89,7 +89,7 @@ if set -q c_files[1] include-what-you-use -Xiwyu --mapping_file=build_tools/iwyu.linux.imp \ $cppcheck_args $c_file 2>&1 case '*' # hope for the best - include-what-you-use $cppcheck_args $c_file 2>&1 + include-what-you-use --std=c++11 $cppcheck_args $c_file 2>&1 end end end