-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add option to integrate msvc build into regular make build. #11343
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
Add option to integrate msvc build into regular make build. #11343
Conversation
|
@monojenkins build failed |
Add support to perform msvc build as part of regular make build. By default msvc build will not automatically be done and needs to be enabled using --with-msvc argument passed to ./autogen.sh. Doing msvc build as part of regular make will automatically set MONO_EXECUTABLE to build msvc build Mono runtime used in BCL and Test build as well as runtime used when running tests.
335dcf9 to
0a3056f
Compare
luhenry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Only the --enable-msvc and it will all look perfect to me :)
configure.ac
Outdated
| AC_SUBST(mono_build_root) | ||
|
|
||
| mono_runtime=mono/mini/mono | ||
| AC_ARG_WITH(msvc, [ --with-msvc=yes,no Build with Visual Studio (msvc) (defaults to no)],[],[with_msvc=no]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use AC_ARG_ENABLE so you have --enable-msvc. We overuse the --with-* which is not originally meant for a yes/no parameter. Then propagate that ENABLE_MSVC variable instead of WITH_MSVC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will change. Original used --enable-msvc at a start but then I looked for other patterns that seemed to be using --with-*.
|
@monojenkins build failed |
Add support to perform msvc mono runtime build as part of regular make build. By default, msvc build will not automatically but can be enabled using --enable-msvc argument passed to autogen.sh. Doing msvc build as part of regular make will automatically set MONO_EXECUTABLE to build msvc build Mono runtime used in BCL and Test build as well as runtime used when running tests. Build msvc binaries will also be part of make install, if enabled.
Running build using --enable-msvc removes the need to do separate msvc build (normally before running make) and setup MONO_EXECUTABLE to matching build binary later picked up by BCL/Test builds and test execution. Using --enable-msvc automatically makes sure a matching msvc runtime gets build and used based on used --host parameter. Doing a full Windows build, including msvc build can now be done like this:
./autogen.sh --prefix=$PREFIX --host=x86_64-w64-mingw32 --enable-msvc --disable-boehm
make -j4