-
Notifications
You must be signed in to change notification settings - Fork 405
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
Build improvements #646
Build improvements #646
Conversation
Since we use Visual Studio as generator, CMAKE_BUILD_TYPE doesn't make sense, since configuration (release/debug) is specified on build step, not configure step. Signed-off-by: Lev Stipakov <lev@openvpn.net>
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.
This looks good. Would it be useful to make ASAN builds the default for GHA?
I would just add ASAN configuration to GHA jobs, but for that one needs to look closer on matrix/jobs thing. |
CMakeLists.txt
Outdated
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /guard:cf /DYNAMICBASE") | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4267 /wd4244") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4267 /wd4244 /wd5072") |
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.
I really think we should document what these numbers mean here. Sure, I can google it. But a comment would be better.
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.
I changed the way how ASAN is enabled and this is not needed anymore.
4127a18
to
1432163
Compare
Add ASAN build configuration, based on debug with ASAN enabled. This might help finding crashes like in OpenVPN#548 Signed-off-by: Lev Stipakov <lev@openvpn.net>
1432163
to
6a70ad2
Compare
MSVC is the only generator we use for CMake. Signed-off-by: Lev Stipakov <lev@openvpn.net>
No description provided.