More reliable Windows wordsize detection

This commit is contained in:
Jay Berkenbilt 2020-10-15 18:45:39 -04:00
parent ff65e272a8
commit 807aaa46b1
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -e
set -x
if echo $PATH | grep -q /mingw64; then
if g++ -v 2>&1 | grep Target: | grep -q x86_64; then
wordsize=64
else
wordsize=32

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -e
set -x
if echo $PATH | grep -q /mingw64; then
if cl 2>&1 | grep -q 'for x64'; then
wordsize=64
else
wordsize=32