Skip to content

Commit e94ece6

Browse files
author
Christopher Doris
committed
check python and julia have the same word size
1 parent 7e650cc commit e94ece6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/init.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@
181181

182182
@pyg `import sys, os`
183183

184+
pywordsize = (@pyv `sys.maxsize > 2**32`::Bool) ? 64 : 32
185+
pywordsize == Sys.WORD_SIZE || error("Julia is $(Sys.WORD_SIZE)-bit but Python is $(pywordsize)-bit (at $(CONFIG.exepath ? "unknown location" : CONFIG.exepath))")
186+
184187
if !CONFIG.isembedded
185188
@py ```
186189
# Some modules expect sys.argv to be set

0 commit comments

Comments
 (0)