Skip to content

Commit 19714f5

Browse files
committed
config.toml: Add stubs for recognized-but-unused install paths
... specifically `datadir`, `infodir`, and `localstatedir`. These were already accepted by `configure.py`, but it didn't have any place to put the values.
1 parent 924331c commit 19714f5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

config.toml.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@
203203
# Where to install man pages in `prefix` above
204204
#mandir = "share/man"
205205

206+
# Where to install data in `prefix` above (currently unused)
207+
#datadir = "share"
208+
209+
# Where to install additional info in `prefix` above (currently unused)
210+
#infodir = "share/info"
211+
212+
# Where to install local state (currently unused)
213+
# If this is a relative path, it will get installed in `prefix` above
214+
#localstatedir = "/var/lib"
215+
206216
# =============================================================================
207217
# Options for compiling Rust code itself
208218
# =============================================================================

src/bootstrap/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ struct Install {
207207
bindir: Option<String>,
208208
libdir: Option<String>,
209209
mandir: Option<String>,
210+
211+
// standard paths, currently unused
212+
datadir: Option<String>,
213+
infodir: Option<String>,
214+
localstatedir: Option<String>,
210215
}
211216

212217
/// TOML representation of how the LLVM build is configured.

0 commit comments

Comments
 (0)