Build directories do not remember their source #2757
Unanswered
davidchisnall
asked this question in
Q&A
Replies: 3 comments 8 replies
-
$ mkdir build
$ cd build
$ mkdir .xmake
$ xmake -P ..
[ 25%]: cache compiling.release src/main.cpp
[ 50%]: linking.release test
[100%]: build ok! or $ mkdir build
$ cd build
$ export XMAKE_CONFIGDIR=`pwd`
$ xmake -P .. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I will continue to improve on some of the points you mentioned here. #3342 |
Beta Was this translation helpful? Give feedback.
6 replies
-
And, I've continued to improve the build directory experience, so that I can now remember the build directory outside of the project source code. But it hasn't been merged yet, so you can test it by updating to the config branch. $ xmake update -s github:xmake-io/xmake#config
$ cd workdir
$ xmake f -P ../projectdir
$ xmake
$ xmake run
...
see #3342 and related pr #3344 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Xmake Version
v2.7.1+master.20e5768e3
Operating System Version and Architecture
FreeBSD 14
Describe Bug
When I run a build from the build directory (as is generally best practice, as it keeps all build-related state distinct from the source and allows separate mount points for source [read only] and build [ephemeral]), I need to specify the location of the source directory for every
xmake
invocation.Expected Behavior
The last step in the above example should perform the build.
Project Configuration
No response
Additional Information and Error Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions