Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (16 sloc) 484 Bytes
"""Drop-in replacement for clang. Logs the arguments passed to the compiler to
the file xxx_compiler_args.out. Set the CC and CXX to point at this script.
__author__= "Sean Heelan"
__email__ = ""
import sys
import subprocess
O_FILE = "xxx_compiler_args.out"
CC = "clang"
with open(O_FILE, "ab") as fd:
fd.write(" ".join(sys.argv[1:]) + "\n")
l = [CC]
r = subprocess.Popen(l)