<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le mer. 19 sept. 2018 à 13:43, Dennis Luehring <<a href="mailto:dl.soluz@gmx.net">dl.soluz@gmx.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">build environment:<br>
<br>
Win7 x64<br>
VStudio 2017 Community Edition 15.8.4 (latest)<br>
CMake 3.12.1 (x86)<br>
git 2.19.0 (latest, x64)<br>
Python 2.7.2 (x86)<br>
<br>
directory structure:<br>
<br>
D:/projects/fun/jit_tests/clang_from_src/<br>
llvm <-- git clone <a href="https://github.com/llvm-mirror/llvm" rel="noreferrer" target="_blank">https://github.com/llvm-mirror/llvm</a><br>
tools<br>
clang <-- git clone <a href="https://github.com/llvm-mirror/clang" rel="noreferrer" target="_blank">https://github.com/llvm-mirror/clang</a><br>
llvm_build<br>
<br>
build instructions:<br>
<br>
cd llvm-build<br>
cmake -Thost=x64 -G "Visual Studio 15 2017 Win64" <br>
-DLLVM_TARGETS_TO_BUILD=host ..\llvm_project\llvm<br>
<br>
cmake --config Release --build .<br>
<br>
ends after a few seconds without errors with this message last<br>
<br>
Build files have been written to: <br>
D:/projects/fun/jit_tests/clang_from_src/llvm-build<br>
<br>
cmake --build . --config Release<br>
<br>
do work and the build is running - is it intended that the position of <br>
the --config parameter is that relevant?</blockquote><div><br></div><div>I guess it is because --config is a sub-option of the --build option whose expected syntax is:</div><div>cmake --build <dir> [options] [-- [native-options]]<br></div><div><br></div><div>In the other case the expected syntax is different: </div><div>cmake [options] <path-to-existing-build></div><div><br></div><div>See the different expected syntaxes of the cmake command line here:</div><div><a href="https://cmake.org/cmake/help/latest/manual/cmake.1.html">https://cmake.org/cmake/help/latest/manual/cmake.1.html</a><br></div><div><br></div><div>That said the "non working" case should probably at least warn about ignored/unused options on the command line. </div></div><div>However, I suspect that maintaining backward compatible command line behavior while providing meaningful</div><div>error messages may not be easy. </div><div><br></div><div>CMake developers may give more precise answer on that "guess".</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div></div></div></div></div></div>