Skip to content

Add new env.var to set a build configuration at runtime - #426

Merged
alxbilger merged 5 commits into
sofa-framework:masterfrom
fredroy:config_multibuild_win32
Jul 31, 2024
Merged

alxbilger merged 5 commits into
sofa-framework:masterfrom
fredroy:config_multibuild_win32

Conversation

@fredroy

@fredroy fredroy commented Jul 15, 2024

Copy link
Copy Markdown
Contributor

Title.

Sometimes it is frustrating with MSVC config that python3 interpreter choose a bad build directory for SOFA_ROOT because he just find the first build directory with Sofa.Helper.dll. So if you have both Release and RelWithDebInfo, it will always choose the first one, even if you are currenty working with the second one.
So this PR introduces a new envvar to force choose a configuration, called SOFA_BUILD_CONFIGURATION.
Actually it can also be useful if a user uses a custom name for the configuration type (other than release, relwithdebinfo, etc)

Note that this feature would be useful for macOS/XCode but for the moment SofaPython3 always considered macOS like Linux/{makefile/ninja}, i.e with a single configuration mode.

Comment thread bindings/Sofa/package/__init__.py Resolved
Comment thread .github/workflows/ci.yml Resolved
@fredroy fredroy mentioned this pull request Jul 17, 2024
@fredroy
fredroy force-pushed the config_multibuild_win32 branch from 539dbd9 to dbf694e Compare July 25, 2024 00:32
Comment thread .github/workflows/ci.yml Resolved
Comment thread bindings/Sofa/package/__init__.py Resolved
@alxbilger
alxbilger merged commit c145b7a into sofa-framework:master Jul 31, 2024
damienmarchal pushed a commit that referenced this pull request Sep 13, 2024
* add new env.var to set build configuration at runtime

* remove comment about old behavior

* test

* Update .github/workflows/ci.yml

* Update bindings/Sofa/package/__init__.py

---------

Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants