Skip to content

build: remove default prefix option#3399

Open
bcapener wants to merge 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:build-remove-hard-coded-default-prefix
Open

build: remove default prefix option#3399
bcapener wants to merge 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>
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.

1 participant