From 5b896ed70bbf18e633bbeca442c90610e3d66a22 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 7 Jan 2019 13:47:27 -0800 Subject: allow setting directory locations in a native file This allows the person running configure (either a developer, user, or distro maintainer) to keep a configuration of where various kinds of files should end up. --- docs/markdown/Native-environments.md | 17 +++++++++++++++++ docs/markdown/snippets/native-file-paths.md | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 docs/markdown/snippets/native-file-paths.md (limited to 'docs/markdown') diff --git a/docs/markdown/Native-environments.md b/docs/markdown/Native-environments.md index a9719a7..f0d41eb 100644 --- a/docs/markdown/Native-environments.md +++ b/docs/markdown/Native-environments.md @@ -43,6 +43,23 @@ rust = '/usr/local/bin/rust' llvm-config = '/usr/local/llvm-svn/bin/llvm-config' ``` +### Paths and Directories + +As of 0.50.0 paths and directories such as libdir can be defined in the native +file in a paths section + +```ini +[paths] +libdir = 'mylibdir' +prefix = '/my prefix' +``` + +These values will only be loaded when not cross compiling. Any arguments on the +command line will override any options in the native file. For example, passing +`--libdir=otherlibdir` would result in a prefix of `/my prefix` and a libdir of +`otherlibdir`. + + ## Loading multiple native files Unlike cross file, native files allow layering. More than one native file can be diff --git a/docs/markdown/snippets/native-file-paths.md b/docs/markdown/snippets/native-file-paths.md new file mode 100644 index 0000000..6979241 --- /dev/null +++ b/docs/markdown/snippets/native-file-paths.md @@ -0,0 +1,4 @@ +## Native File Paths and Directories + +A new `[paths]` section has been added to the native file. This can be used to +set paths such a prefix and libdir in a persistent way. -- cgit v1.1