aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/utils
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-06-27 09:21:39 +0200
committerBjörn Gustavsson <[email protected]>2017-08-08 09:49:42 +0200
commit426af3250c3f1bdb121413b8b054b63c1bc60fa6 (patch)
treeb6ac7b96ac8b454a2981ebe4a919aad5e8f6c04b /erts/emulator/utils
parente201a3d8ff9c8b1dfb978a8cf86a729834024c1f (diff)
downloadotp-426af3250c3f1bdb121413b8b054b63c1bc60fa6.tar.gz
otp-426af3250c3f1bdb121413b8b054b63c1bc60fa6.tar.bz2
otp-426af3250c3f1bdb121413b8b054b63c1bc60fa6.zip
beam_makeops: Define ARCH_32 and ARCH_64
Diffstat (limited to 'erts/emulator/utils')
-rwxr-xr-xerts/emulator/utils/beam_makeops8
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/utils/beam_makeops b/erts/emulator/utils/beam_makeops
index 6b202176d0..fca596e4e5 100755
--- a/erts/emulator/utils/beam_makeops
+++ b/erts/emulator/utils/beam_makeops
@@ -246,6 +246,14 @@ while (@ARGV && $ARGV[0] =~ /^-(.*)/) {
die "$0: Bad option: -$_\n";
}
+if ($wordsize == 32) {
+ $defs{'ARCH_32'} = 1;
+ $defs{'ARCH_64'} = 0;
+} elsif ($wordsize == 64) {
+ $defs{'ARCH_32'} = 0;
+ $defs{'ARCH_64'} = 1;
+}
+
#
# Initialize number of arguments per packed word.
#