-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
Support independent working/build directory #820
Comments
done, |
The requirement to create .xmake in the directory is annoying. The normal idiom for building is:
With xmake, this sequence appears to work but actually scatters files in my source directory. In secure build environments, the source directory is mounted read-only and so something that looks as if it's working will then fail. This makes it harder for me to convince other people to try xmake, because their normal workflow requires extra steps and has annoying failure modes. |
It looks as if you need to specify It's unfortunate that xmake defaults to trying to build from the source directory. |
If you're already in the build directory, you don't need to specify |
If you're already in the build directory, you don't need to specify
will not fail, even if your source directory is read-only. With the following command, xmake will not create any files in the source directory. $ mkdir /xxx/working; cd /xxx/working
$ mkdir .xmake
$ xmake -P /xxxx/myproject (readonly) |
I agree that this should be the behaviour, however when I don't specify -o it creates a build directory in my source tree and puts object files there. When I do, it creates them in the current directory. My exact sequence:
The build files are created under |
I have improved it, try it again. |
I have built from source. If I run |
The error message is a bit misleading as you need both actually (or at least 7zip). The change is on the dev branch: e59566a |
Thanks, I can confirm that this works if I move to the dev branch. |
If we do not want to create .xmake and build directories under the current project directory, and keep the project directory clean.
We can try run:
It will generate build and .xmake dirs to
/xxx/working
If we only want to move projectdir/.xmake to build/.xmake, we can run
Or we can uses environment vars to set these dirs.
The text was updated successfully, but these errors were encountered: