diff options
author | Björn Gustavsson <[email protected]> | 2017-06-27 09:21:39 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-08-08 09:49:42 +0200 |
commit | 426af3250c3f1bdb121413b8b054b63c1bc60fa6 (patch) | |
tree | b6ac7b96ac8b454a2981ebe4a919aad5e8f6c04b /erts/emulator | |
parent | e201a3d8ff9c8b1dfb978a8cf86a729834024c1f (diff) | |
download | otp-426af3250c3f1bdb121413b8b054b63c1bc60fa6.tar.gz otp-426af3250c3f1bdb121413b8b054b63c1bc60fa6.tar.bz2 otp-426af3250c3f1bdb121413b8b054b63c1bc60fa6.zip |
beam_makeops: Define ARCH_32 and ARCH_64
Diffstat (limited to 'erts/emulator')
-rwxr-xr-x | erts/emulator/utils/beam_makeops | 8 |
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. # |