You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Joseph Wu <jo...@mesosphere.io> on 2017/01/11 02:22:31 UTC

Re: Review Request 55025: Transitioned `BUILD_DIR` to use Unix-style paths on Windows.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55025/#review161172
-----------------------------------------------------------


Ship it!




Ship It!

- Joseph Wu


On Dec. 24, 2016, 3:09 a.m., Alex Clemmer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55025/
> -----------------------------------------------------------
> 
> (Updated Dec. 24, 2016, 3:09 a.m.)
> 
> 
> Review request for mesos, Andrew Schwartzmeyer, Daniel Pravat, John Kordich, and Joseph Wu.
> 
> 
> Bugs: MESOS-6736
>     https://issues.apache.org/jira/browse/MESOS-6736
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Currently in the test harness, we pass the flags `-DSOURCE_DIR` and
> `-DBUILD_DIR` to the compiler. These are used to do things like
> determine where the containerizer is to launch it for tests.
> 
> On Windows, these paths should be Windows-style, with '\' characters
> separating path components. Unfortunately, CMake does not escape these
> slashes in path strings, so when we pass them as preprocessor flags,
> a string like `C:\src` will look to the standard Windows API like a
> string with an escaped '\s' character.
> 
> On the other hand, Windows APIs are happy to take Unix-style paths as
> arguments. So, to unblock making the agent tests work, we simply use
> Unix paths here.
> 
> 
> Diffs
> -----
> 
>   src/tests/cmake/MesosTestsConfigure.cmake ca042bd3f7ebc339f1c342b1854a66e33ee9f20c 
> 
> Diff: https://reviews.apache.org/r/55025/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alex Clemmer
> 
>