Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: testing/iossim/redirect-stdout.sh

Issue 1806523002: Add BUILD.gn rules to compile third_party/class-dump. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compiler
Patch Set: Use ${host_toolchain} instead of //build/toolchain/mac:clang_x64 Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/iossim/iossim.gyp ('k') | third_party/class-dump/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/iossim/redirect-stdout.sh
diff --git a/testing/iossim/redirect-stdout.sh b/testing/iossim/redirect-stdout.sh
deleted file mode 100755
index 446550368bca320618341f3564311e3e31167f51..0000000000000000000000000000000000000000
--- a/testing/iossim/redirect-stdout.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-#
-# This script executes the command given as the first argument, strips
-# cxx_destruct from stdout, and redirects the remaining stdout to the file given
-# as the second argument.
-#
-# Example: Write the text 'foo' to a file called out.txt:
-# RedirectStdout.sh "echo foo" out.txt
-#
-# This script is invoked from iossim.gyp in order to redirect the output of
-# class-dump to a file (because gyp actions don't support redirecting output).
-# This script also removes all lines with cxx_destruct. Perhaps newer versions
-# of class-dump will fix this issue. As of 3.5, 'cxx_destruct' still exists.
-
-if [ ${#} -ne 2 ] ; then
- echo "usage: ${0} <command> <output file>"
- exit 2
-fi
-
-echo "// Treat class-dump output as a system header." > $2
-echo "#pragma clang system_header" >> $2
-$1 | sed /cxx_destruct/d >> $2
« no previous file with comments | « testing/iossim/iossim.gyp ('k') | third_party/class-dump/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698