From 2d86e3ec3130a792a1c8a6bd1b3cf7983cbedabe Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 31 Aug 2009 18:15:00 +0000 Subject: [PATCH] Support for colorgcc --- makepanda/makepandacore.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 3e722d40e1..0a04814462 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -20,6 +20,7 @@ MAINTHREAD=threading.currentThread() OUTPUTDIR="built" CUSTOM_OUTPUTDIR=False OPTIMIZE="3" +USE_COLORGCC=os.path.isfile("/usr/bin/colorgcc") ######################################################################## ## @@ -130,6 +131,8 @@ def oscmd(cmd, ignoreError = False): exit("Cannot find "+exe+" on search path") res = os.spawnl(os.P_WAIT, exe, cmd) else: + if (USE_COLORGCC and (cmd.startswith("g++ ") or cmd.startswith("gcc "))): + cmd = "colorgcc" + cmd[3:] res = os.system(cmd) if res != 0 and not ignoreError: exit("")