[compiler-rt] r238428 - Use /usr/bin/env to find python

Ed Maste emaste at freebsd.org
Thu May 28 07:53:15 PDT 2015


Author: emaste
Date: Thu May 28 09:53:14 2015
New Revision: 238428

URL: http://llvm.org/viewvc/llvm-project?rev=238428&view=rev
Log:
Use /usr/bin/env to find python

Python may not be /usr/bin/python on some systems. For example, on
FreeBSD it will be /usr/local/bin/python.

Reviewers: samsonov
Differential Revision: http://reviews.llvm.org/D9914

Modified:
    compiler-rt/trunk/lib/sanitizer_common/scripts/cpplint.py
    compiler-rt/trunk/lib/sanitizer_common/scripts/litlint.py

Modified: compiler-rt/trunk/lib/sanitizer_common/scripts/cpplint.py
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/scripts/cpplint.py?rev=238428&r1=238427&r2=238428&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/cpplint.py (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/cpplint.py Thu May 28 09:53:14 2015
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Copyright (c) 2009 Google Inc. All rights reserved.
 #

Modified: compiler-rt/trunk/lib/sanitizer_common/scripts/litlint.py
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/scripts/litlint.py?rev=238428&r1=238427&r2=238428&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/litlint.py (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/litlint.py Thu May 28 09:53:14 2015
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # litlint
 #





More information about the llvm-commits mailing list