diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-03-15 12:57:41 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-03-15 12:57:41 -0700 |
commit | bb00f2a7a0ca8210f6f62665920c6a011258b957 (patch) | |
tree | 66ac84f6723bdf1a9d164c725a4e45c36caf2040 /lib/spack/env | |
parent | 27093790dcdcf908a80cb1b292601c74553c674b (diff) | |
parent | e38e79417b570f5b6315fed1fb909745d6a647a9 (diff) | |
download | spack-bb00f2a7a0ca8210f6f62665920c6a011258b957.tar.gz spack-bb00f2a7a0ca8210f6f62665920c6a011258b957.tar.bz2 spack-bb00f2a7a0ca8210f6f62665920c6a011258b957.tar.xz spack-bb00f2a7a0ca8210f6f62665920c6a011258b957.zip |
Merge branch 'stat' into next
Diffstat (limited to 'lib/spack/env')
-rwxr-xr-x | lib/spack/env/cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index 06592febaa..97a8e6c42d 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -29,6 +29,11 @@ spack_env_path = get_path("SPACK_ENV_PATH") # Figure out what type of operation we're doing command = os.path.basename(sys.argv[0]) cpp, cc, ccld, ld = range(4) + +# TODO: this can to be removed once Jira issue SPACK-16 is resolved +if command == 'CC': + command = 'c++' + if command == 'cpp': mode = cpp elif command == 'ld': @@ -90,6 +95,7 @@ for item in ['.'] + spack_env_path: os.environ["PATH"] = ":".join(clean_path) full_command = [command] + arguments + if spack_debug: input_log = os.path.join(spack_build_root, 'spack_cc_in.log') output_log = os.path.join(spack_build_root, 'spack_cc_out.log') |