Add an is_64bit shared setting.

Many ISAs and 64-bit and 32-bit variants. Use a shared is_64bit setting to
distinguish.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-29 16:30:03 -07:00
parent dcf0b49b07
commit 6145f4ca13
2 changed files with 3 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ mod tests {
assert_eq!(f.to_string(),
"[shared]\n\
opt_level = \"default\"\n\
is_64bit = false\n\
enable_simd = true\n");
assert_eq!(f.opt_level(), super::OptLevel::Default);
assert_eq!(f.enable_simd(), true);

View File

@@ -18,6 +18,8 @@ opt_level = EnumSetting(
""",
'default', 'best', 'fastest')
is_64bit = BoolSetting("Enable 64-bit code generation")
enable_simd = BoolSetting(
"""Enable the use of SIMD instructions.""",
default=True)