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

Unified Diff: pylib/gyp/system_test.py

Issue 6883065: make: Expose a 'linker_supports_icf' flag. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: '' Created 9 years, 8 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 | « pylib/gyp/generator/make.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pylib/gyp/system_test.py
===================================================================
--- pylib/gyp/system_test.py (revision 913)
+++ pylib/gyp/system_test.py (working copy)
@@ -57,6 +57,13 @@
env={'cc': cc_command})
+def TestLinkerSupportsICF(cc_command='cc'):
+ """Test whether the linker supports identical code folding."""
+ return TestCommands(['%(cc)s -Wl,--icf=safe test.c'],
+ files={'test.c': 'int main(){}'},
+ env={'cc': cc_command})
+
+
if __name__ == '__main__':
# Run the various test functions and print the results.
def RunTest(description, function, **kwargs):
« no previous file with comments | « pylib/gyp/generator/make.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698