-
Notifications
You must be signed in to change notification settings - Fork 770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not try to symlink libclang on Windows #914
Conversation
create_symlink is UNIX specific[1], and it breaks the build on Windows. [1]: https://cmake.org/cmake/help/v3.9/manual/cmake.1.html
What's the error this PR is trying to fix? We have build bots constantly building ycmd on Windows and it didn't break once. |
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion. cpp/ycm/CMakeLists.txt, line 412 at r1 (raw file):
This line is in an else vs if (MSVC). What compiler are you using ? Comments from Reviewable |
cpp/ycm/CMakeLists.txt, line 412 at r1 (raw file): Previously, puremourning (Ben Jackson) wrote…
After some more modifications I manged to build with MINGW. I have not tried with MSVC. The error was a failure to create the symlink. I have just noticed Comments from Reviewable |
I am building with
Comments from Reviewable |
Codecov Report
@@ Coverage Diff @@
## master #914 +/- ##
======================================
Coverage 96.2% 96.2%
======================================
Files 83 83
Lines 6500 6500
======================================
Hits 6253 6253
Misses 247 247 |
The symlink is only needed on Linux so it makes sense to exclude Windows (which is going to be MinGW or MSYS in that scenario). Reviewed 1 of 1 files at r1. Comments from Reviewable |
Let's merge this. @zzbot r=micbou Review status: all files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
📌 Commit 692cfdb has been approved by |
Do not try to symlink libclang on Windows create_symlink is UNIX specific[1], and it breaks the build on Windows. [1]: https://cmake.org/cmake/help/v3.9/manual/cmake.1.html <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/914) <!-- Reviewable:end -->
☀️ Test successful - status-appveyor, status-travis |
[READY] Update ycmd Include the following changes: - PR ycm-core/ycmd#789: add support for Windows flags when --driver-mode=cl is given; - PR ycm-core/ycmd#848: hide C++ symbols by default; - PR ycm-core/ycmd#857: add Java support using jdt.ls; - PR ycm-core/ycmd#861: translate libclang error codes to exceptions; - PR ycm-core/ycmd#880: support downloading Clang binaries on ARM systems; - PR ycm-core/ycmd#883: handle zero column diagnostic from OmniSharp; - PR ycm-core/ycmd#884: specify Platform property when compiling OmniSharp; - PR ycm-core/ycmd#886: use current working directory in JavaScript completer; - PR ycm-core/ycmd#887: update Boost to 1.66.0; - PR ycm-core/ycmd#888: update JediHTTP; - PR ycm-core/ycmd#889: update Clang to 5.0.1; - PR ycm-core/ycmd#891: fix building with system libclang on Gentoo amd64; - PR ycm-core/ycmd#904: drop Python 2.6 and Python 3.3 support; - PR ycm-core/ycmd#905: calculate the start column when items are not resolved in the language server completer; - PR ycm-core/ycmd#912: download Clang binaries from HTTPS; - PR ycm-core/ycmd#914: do not try to symlink libclang on Windows. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2902) <!-- Reviewable:end -->
create_symlink is UNIX specific1, and it breaks the build
on Windows.
This change is