author | wenzelm |
Sat, 19 Oct 2024 16:27:00 +0200 | |
changeset 81197 | 794b10baf0de |
parent 79995 | e94a36467f4e |
permissions | -rw-r--r-- |
37012 | 1 |
# -*- shell-script -*- :mode=shellscript: |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
2 |
# |
66731 | 3 |
# determine general hardware and operating system type for Isabelle system tools |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
4 |
# |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
5 |
|
50182 | 6 |
ISABELLE_PLATFORM_FAMILY="" |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
7 |
ISABELLE_PLATFORM64="" |
72999
f6051c13bffa
support ISABELLE_APPLE_PLATFORM64 (Apple Silicon);
wenzelm
parents:
72370
diff
changeset
|
8 |
ISABELLE_APPLE_PLATFORM64="" |
65072 | 9 |
ISABELLE_WINDOWS_PLATFORM32="" |
10 |
ISABELLE_WINDOWS_PLATFORM64="" |
|
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
11 |
|
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
12 |
case $(uname -s) in |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
13 |
Linux) |
50182 | 14 |
ISABELLE_PLATFORM_FAMILY="linux" |
72344 | 15 |
case $(uname -m) in |
16 |
aarch64) |
|
17 |
ISABELLE_PLATFORM64=arm64-linux |
|
18 |
;; |
|
19 |
*) |
|
20 |
ISABELLE_PLATFORM64=x86_64-linux |
|
21 |
;; |
|
22 |
esac |
|
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
23 |
;; |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
24 |
Darwin) |
50182 | 25 |
ISABELLE_PLATFORM_FAMILY="macos" |
79995 | 26 |
ISABELLE_PLATFORM64=x86_64-darwin |
27 |
case $(uname -a) in |
|
28 |
*arm64*|*ARM64*) |
|
29 |
ISABELLE_APPLE_PLATFORM64=arm64-darwin |
|
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
30 |
;; |
71342
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
31 |
*) |
36213
4df49260bd82
accept x86_64 results gracefully -- NB: Mac OS does report that if booted in 64 bit mode;
wenzelm
parents:
36196
diff
changeset
|
32 |
;; |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
33 |
esac |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
34 |
;; |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
35 |
CYGWIN_NT*) |
50182 | 36 |
ISABELLE_PLATFORM_FAMILY="windows" |
71342
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
37 |
ISABELLE_WINDOWS_PLATFORM32="x86-windows" |
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
38 |
ISABELLE_WINDOWS_PLATFORM64="x86_64-windows" |
79994
9b532f064649
more robust: always assume x86_64 (or its emulation on ARM);
wenzelm
parents:
73671
diff
changeset
|
39 |
ISABELLE_PLATFORM64=x86_64-cygwin |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
40 |
;; |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
41 |
esac |