xref: /aosp_15_r20/external/angle/build/sanitize-mac-build-log.sed (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# Copyright 2012 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# Use this sed script to reduce a Mac build log into something readable.
6
7# Drop uninformative lines.
8/^distcc/d
9/^Check dependencies/d
10/^    setenv /d
11/^    cd /d
12/^make: Nothing to be done/d
13/^$/d
14
15# Xcode prints a short "compiling foobar.o" line followed by the lengthy
16# full command line.  These deletions drop the command line.
17\|^    /Developer/usr/bin/|d
18\|^    /Developer/Library/PrivateFrameworks/DevToolsCore\.framework/|d
19\|^    /Developer/Library/Xcode/Plug-ins/CoreBuildTasks\.xcplugin/|d
20
21# And, if you've overridden something from your own bin directory, remove those
22# full command lines, too.
23\|^    /Users/[^/]*/bin/|d
24
25# There's already a nice note for bindings, don't need the command line.
26\|^python scripts/rule_binding\.py|d
27
28# Shorten the "compiling foobar.o" line.
29s|^Distributed-CompileC (.*) normal i386 c\+\+ com\.apple\.compilers\.gcc\.4_2|    CC \1|
30s|^CompileC (.*) normal i386 c\+\+ com\.apple\.compilers\.gcc\.4_2|    CC \1|
31