about summary refs log tree commit diff
path: root/src/libcore/num/int.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/num/int.rs')
-rw-r--r--src/libcore/num/int.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libcore/num/int.rs b/src/libcore/num/int.rs
index 91c5e4163f9..93f5b31ca72 100644
--- a/src/libcore/num/int.rs
+++ b/src/libcore/num/int.rs
@@ -13,5 +13,8 @@
 #![stable]
 #![doc(primitive = "int")]
 
-#[cfg(target_word_size = "32")] int_module! { int, 32 }
-#[cfg(target_word_size = "64")] int_module! { int, 64 }
+#[cfg(stage0)] #[cfg(target_word_size = "32")] int_module! { int, 32 }
+#[cfg(stage0)] #[cfg(target_word_size = "64")] int_module! { int, 64 }
+
+#[cfg(not(stage0))] #[cfg(target_pointer_width = "32")] int_module! { int, 32 }
+#[cfg(not(stage0))] #[cfg(target_pointer_width = "64")] int_module! { int, 64 }