Skip to content

build: remove default prefix option#3399

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:build-remove-hard-coded-default-prefix
Jun 1, 2026
Merged

build: remove default prefix option#3399
igaw merged 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:build-remove-hard-coded-default-prefix

Conversation

@bcapener
Copy link
Copy Markdown
Contributor

Hard coding the default prefix causes issues on windows. meson's docs says "prefix defaults to C:/ on Windows, and /usr/local otherwise. You should always override this value.", see https://mesonbuild.com/Builtin-options.html. There is no value, only downside on Windows, to setting the value here. If the user want a different value it should be overridden via the command line. During development we should not have to set the prefix, it should just default to a sane value.

Windows with default prefix removed
Paths
prefixdir : C:/msys64/ucrt64
sysconfdir : C:/msys64/ucrt64/etc
sbindir : C:/msys64/ucrt64/sbin
Windows with default prefix set to "prefix=/usr/local". Or, Linux with and without "prefix=/usr/local"
Paths
prefixdir : /usr/local
sysconfdir : /usr/local/etc
sbindir : /usr/local/sbin

@bcapener bcapener force-pushed the build-remove-hard-coded-default-prefix branch from 87f3e80 to 7b51b86 Compare May 29, 2026 17:28
Hard coding the default prefix causes issues on windows.
meson's docs says "prefix defaults to C:/ on Windows,
and /usr/local otherwise. You should always override this value.".
There is no value, only downside on Windows, to setting the value here.
If the user want a different value it should be overridden via the command line.

Signed-off-by: Brandon Capener <bcapener@micron.com>
@igaw igaw merged commit 7ebe4a8 into linux-nvme:master Jun 1, 2026
29 of 30 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Jun 1, 2026

Thanks!

@bcapener bcapener deleted the build-remove-hard-coded-default-prefix branch June 1, 2026 18:53
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.

2 participants