Skip to content
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

Merged
merged 3 commits into from
Sep 4, 2023
Merged

Conversation

lstipakov
Copy link
Member

No description provided.

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>
Copy link
Collaborator

@selvanair selvanair left a 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?

@lstipakov
Copy link
Member Author

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")
Copy link
Member

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.

Copy link
Member Author

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.

CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
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>
MSVC is the only generator we use for CMake.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
@lstipakov lstipakov merged commit 8b42ea8 into OpenVPN:master Sep 4, 2023
10 checks passed
@lstipakov lstipakov deleted the build_improvements branch September 4, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants