summaryrefslogtreecommitdiff
path: root/src/options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/options.rs b/src/options.rs
index f707ab9b..29edb78b 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -465,7 +465,12 @@ where
),
Arg::new("size_t-is-usize")
.long("size_t-is-usize")
- .help("Translate size_t to usize."),
+ .help("Ignored - this is enabled by default.")
+ .hidden(true),
+ Arg::with_name("no-size_t-is-usize")
+ .long("no-size_t-is-usize")
+ .help("Do not bind size_t as usize (useful on platforms \
+ where those types are incompatible)."),
Arg::new("no-rustfmt-bindings")
.long("no-rustfmt-bindings")
.help("Do not format the generated bindings with rustfmt."),
@@ -975,8 +980,8 @@ where
builder = builder.record_matches(false);
}
- if matches.is_present("size_t-is-usize") {
- builder = builder.size_t_is_usize(true);
+ if matches.is_present("no-size_t-is-usize") {
+ builder = builder.size_t_is_usize(false);
}
let no_rustfmt_bindings = matches.is_present("no-rustfmt-bindings");