Index: tools/vim/chromium.ycm_extra_conf.py |
diff --git a/tools/vim/chromium.ycm_extra_conf.py b/tools/vim/chromium.ycm_extra_conf.py |
index e5396e3b19b756f071032d4ee0dd7f543ede2151..2e5318bcdb4b5223e01f432493b557e66bd58a75 100644 |
--- a/tools/vim/chromium.ycm_extra_conf.py |
+++ b/tools/vim/chromium.ycm_extra_conf.py |
@@ -166,12 +166,11 @@ def GetClangCommandFromNinjaForFilename(chrome_root, filename): |
# try to use the default flags. |
return chrome_flags |
- out_dir = GetNinjaOutputDirectory(chrome_root) |
+ out_dir = os.path.realpath(GetNinjaOutputDirectory(chrome_root)) |
# Ninja needs the path to the source file relative to the output build |
# directory. |
- rel_filename = os.path.relpath(os.path.realpath(filename), |
- os.path.realpath(out_dir)) |
+ rel_filename = os.path.relpath(os.path.realpath(filename), out_dir) |
# Ask ninja how it would build our source file. |
p = subprocess.Popen(['ninja', '-v', '-C', out_dir, '-t', |