-
Notifications
You must be signed in to change notification settings - Fork 61
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
add default-dir build option #141
base: master
Are you sure you want to change the base?
Conversation
Hmmm, I think people have requested more flexibility here, namely, the ability to set the default install directory to be relative to different locations. Maybe something like this?
|
Is there an issue/PR where this has been discussed, so I know the scope of what people have been asking for? For something more complex than just changing the subdirectory that the current master branch uses I don't think a single build option with an embedded DSL is the right way to go. I see a few systems that could be reasonable supported and chosen between by build options:
|
I've implemented this, but I haven't added these options to the CI testing (and since I don't have a windows machine to test on there's always a chance I messed up the implementation of |
This is a strategy I can get behind. |
@marler8997 What are your thoughts on testing these build options in CI? The current CI setup uses the |
8475fa0
to
b460ca2
Compare
Extracted from #139.
This PR add a new build option
-Ddefault-dir
that sets the default installation directory. It defaults to "zig" which means that this PR does not change any behaviour if the option is not provided tozig build
.