Skip to content

Commit

Permalink
BUG FIX: clang is often located in a path containing 'clang', which
Browse files Browse the repository at this point in the history
should not be changed when determining the path to clang++

See ycm-core#21
  • Loading branch information
rdnetto committed Jul 20, 2015
1 parent 8df1e7e commit 32c20f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def main():
return 1

try:
cxx = (args["compiler"] or "clang").replace("clang", "clang++")
h, t = os.path.split(args["compiler"] or "clang")
cxx = os.path.join(h, t.replace("clang", "clang++"))
args["cxx"] = subprocess.check_output(["which", cxx]).strip()
except subprocess.CalledProcessError:
print("ERROR: Could not find clang++ at '{}'. Please make sure it is installed and specified appropriately.".format(cxx))
Expand Down

0 comments on commit 32c20f7

Please sign in to comment.