summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vmx
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-05-01 08:19:29 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2019-05-01 08:19:29 +0200
commitaa52d3b13d71bd4b068ae00b2d6f0f75647a5d7c (patch)
treec186567f58a83c79a99a2014bfc0ebf3f2d23017 /sys/src/cmd/vmx
parent2f884a511663d8666770c779beba9a7661b3499a (diff)
vmx: build vmx only for 386 or amd64
vmx uses non portable word unpacking macros, breaking the build for arm64. vmx only works on a pc anyway. this forces objtype to 386 on these machines, similar to what the kernel mkfiles do.
Diffstat (limited to 'sys/src/cmd/vmx')
-rw-r--r--sys/src/cmd/vmx/mkfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/vmx/mkfile b/sys/src/cmd/vmx/mkfile
index c5c8996ac..36befd0c6 100644
--- a/sys/src/cmd/vmx/mkfile
+++ b/sys/src/cmd/vmx/mkfile
@@ -1,3 +1,4 @@
+objtype=`{~ $objtype (386 amd64) && echo $objtype || echo 386}
</$objtype/mkfile
BIN=/$objtype/bin