Skip to content

Conversation

justinmk
Copy link
Member

@justinmk justinmk commented Mar 8, 2018

ref #8084

)

if "%CONFIGURATION:~0,5%" == "MINGW" (
:: These are native MinGW builds, but they use the toolchain inside
:: MSYS2, this allows using all the dependencies and tools available
:: in MSYS2, but we cannot build inside the MSYS2 shell.
set CMAKE_GENERATOR="MinGW Makefiles"
set "CMAKE_GENERATOR=MinGW Makefiles"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quotes need to be part of the variable's value. They can be escaped like this:

set "CMAKE_GENERATOR=^"MinGW Makefiles^""

Or you could put quotes around the variable reference like this:

cmake -G "%CMAKE_GENERATOR%"

Would you accept a PR replacing this Batch script with a PowerShell script? I think it would be much easier to work with.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you accept a PR replacing this Batch script with a PowerShell script?

Definitely!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The carets are unnecessary because it's the last argument. When using carets, it's best to use it for each metacharacter, including the double quotes used for wrapping the argument, in the entire command.

set "CMAKE_GENERATOR="MinGW Makefiles"" is fine.

@justinmk justinmk force-pushed the build-msvc branch 5 times, most recently from 2762c39 to 54b9649 Compare March 10, 2018 02:27
@janlazo
Copy link
Contributor

janlazo commented Mar 10, 2018

Is MSVC build always hanging on test/functional\terminal\ex_terminal_spec.lua?

@justinmk
Copy link
Member Author

@janlazo Yes. We merged the MSVC work so that at least luarocks etc. would work. Also so that it can be used for local development. But in the meantime we should probably disable one or both of the MSVC builds until the build failures can be addressed.

@janlazo
Copy link
Contributor

janlazo commented Mar 10, 2018

Why not disable MSVC_32 since MSVC_64 doesn't hang?

Infinite timeout results in hangs which waste time. If some test needs
longer than 10s to wait for a message, it should specify the timeout
explicitly.
Is there a race between the luarocks `make bootstrap` dependencies?

reverts f73b4911312b35bfe38ed068672a2f8ba8875ba7
ref luarocks/luarocks#774
The MSVC_32 currently hangs.  When MSVC becomes the primary Windows
target, we can enable MSVC_32 and retire one of the mingw builds.  In
the meantime it adds too much time.
macOS travis builds recently started failing (travis caches were cleared
recently, maybe related). python2 is reasonably covered by linux CI. Not
going to waste time on it for macOS CI.

    ==> Installing python@2
    ==> Downloading https://homebrew.bintray.com/bottles/python@2-2.7.14_3.el_capita
    ==> Pouring python@2-2.7.14_3.el_capitan.bottle.tar.gz
    Error: The `brew link` step did not complete successfully
    The formula built, but is not symlinked into /usr/local
    Could not symlink bin/2to3-2
    Target /usr/local/bin/2to3-2
    is a symlink belonging to python. You can unlink it:
      brew unlink python
    To force the link and overwrite all conflicting files:
      brew link --overwrite python@2
    To list all files that would be deleted:
      brew link --overwrite --dry-run python@2
    Possible conflicting files are:
    /usr/local/bin/2to3-2 -> /usr/local/Cellar/python/2.7.12_1/bin/2to3-2
    /usr/local/bin/2to3-2.7 -> /usr/local/Cellar/python/2.7.12_1/bin/2to3-2.7
    /usr/local/bin/idle -> /usr/local/Cellar/python/2.7.12_1/bin/idle
    ...
@justinmk justinmk force-pushed the build-msvc branch 3 times, most recently from 83d3937 to 9cba4f3 Compare March 11, 2018 14:31
Without this, the CI_TARGET=lint travis job cant't find the cached deps
(in $HOME/nvim-deps), nor can it update the cache.
@justinmk justinmk changed the title build/msvc build: use Ninja on travis CI; avoid parallel Luarocks bootstrap Mar 11, 2018
@justinmk justinmk merged commit 241c380 into neovim:master Mar 11, 2018
@justinmk justinmk deleted the build-msvc branch March 11, 2018 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants