Conversation
Prcuvu
left a comment
There was a problem hiding this comment.
Setting platform toolset to environmental variable seems erroneous, both on AppVeyor and my local build environment. CMake may be a better solution.
|
The check failed because I did not set the environment variable The same environment variable also worked for several projects in However, I did not expect user to set the environment variable, but to define the macro in |
nameoverflow
left a comment
There was a problem hiding this comment.
So add PLATFORM_TOOLSET in appveyor.yml to pass CI check? Will it work if create a weasel.props in appveyor.install.bat ?
|
It turns out that |
| set boost_libs=--with-date_time --with-filesystem --with-locale --with-regex --with-signals --with-system --with-thread | ||
| cd %BOOST_ROOT% | ||
|
|
||
| set boost_build_flags=toolset=msvc-%VisualStudioVersion%^ |
There was a problem hiding this comment.
Should not use %VisualStudioVersion% here.
The number is platform toolset, not Visual Studio version.
For example msvc-14.1 for Visual Studio 15 2017.
|
Well, it's more complicated than what I thought. |
|
Typing toolset version in both build script and property sheet is inevitable since we do not build boost in Visual Studio IDE. It is a one-time job after all. |
|
Wait... I have more code to commit. I would like to revert a part of ebf8575 I think it's not correct to auto-detect BJAM_TOOLSET based on VisualStudioVersion. It's ugly and vulnerable to rewrite the version number to platform toolset number. Eventually we have to maintain a mapping table of versions in the script. No. I'm working on converting .template->.vsprops. With that user only have to set environment variable once. |
|
@lotem I would like to leave the job to users. If you come up with some better approach, force update is welcome. |
|
Can we sync submodule librime to tag |
|
Currently AppVeyor CI downloads librime's CI artifact of latest commit, which is ugly and problematic. |
Why do you think it's ugly? Can you share more details on encountered problems with this approach? To the contrary, I'm thinking about splitting
This isn't trivial. Each build has to be tagged with librime version (commit hash) and compared to the Are the binaries shared among build machines? |
I would like to add a librime build cache, whose dependency tracks submodule change (if possible), into |
|
Well, reusing artifacts is a more economic approach. I will just specify artifact URL every time librime changes. Feel free to merge when you think it is ready. |
|
There is one more thing: |
Similar to rime/librime#178
Changes:
PLATFORM_TOOLSETvariable (defaults tov140_xp)BOOST_HOMEtoBOOST_ROOT(to be consistent withlibrime/build.bat)