author | wenzelm |
Wed, 12 Oct 2022 11:15:36 +0200 | |
changeset 76275 | b446004b2464 |
parent 74995 | 68ffcf5cc94b |
permissions | -rw-r--r-- |
49000 | 1 |
# -*- shell-script -*- :mode=shellscript: |
2 |
||
53686 | 3 |
POLYML_HOME="$COMPONENT" |
4 |
||
76275
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
5 |
if [ -n "$ISABELLE_APPLE_PLATFORM64" ] |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
6 |
then |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
7 |
if grep "ML_system_apple.*=.*false" "$ISABELLE_HOME_USER/etc/preferences" >/dev/null 2>/dev/null |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
8 |
then |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
9 |
ML_PLATFORM="$ISABELLE_PLATFORM64" |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
10 |
else |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
11 |
ML_PLATFORM="$ISABELLE_APPLE_PLATFORM64" |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
12 |
fi |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
13 |
else |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
14 |
ML_PLATFORM="${ISABELLE_WINDOWS_PLATFORM64:-$ISABELLE_PLATFORM64}" |
b446004b2464
support for system option ML_system_apple: emulated x86_64 Poly/ML is sometimes more stable than native ARM64;
wenzelm
parents:
74995
diff
changeset
|
15 |
fi |
49000 | 16 |
|
61158
ea6a4c8bc722
convenient change of ML system architecture via system option ML_preference_64, which is grepped off-line from stored preferences during bootstrap;
wenzelm
parents:
61136
diff
changeset
|
17 |
if grep "ML_system_64.*=.*true" "$ISABELLE_HOME_USER/etc/preferences" >/dev/null 2>/dev/null |
ea6a4c8bc722
convenient change of ML system architecture via system option ML_preference_64, which is grepped off-line from stored preferences during bootstrap;
wenzelm
parents:
61136
diff
changeset
|
18 |
then |
69704 | 19 |
ML_OPTIONS="--minheap 1000" |
61158
ea6a4c8bc722
convenient change of ML system architecture via system option ML_preference_64, which is grepped off-line from stored preferences during bootstrap;
wenzelm
parents:
61136
diff
changeset
|
20 |
else |
74728 | 21 |
ML_PLATFORM="${ML_PLATFORM/64/64_32}" |
69704 | 22 |
ML_OPTIONS="--minheap 500" |
61158
ea6a4c8bc722
convenient change of ML system architecture via system option ML_preference_64, which is grepped off-line from stored preferences during bootstrap;
wenzelm
parents:
61136
diff
changeset
|
23 |
fi |
49000 | 24 |
|
74637 | 25 |
ML_SYSTEM=polyml-5.9 |
69704 | 26 |
ML_HOME="$POLYML_HOME/$ML_PLATFORM" |
27 |
ML_SOURCES="$POLYML_HOME/src" |
|
71396
c1c61d0d8e7c
clarified build_polyml_component: include IDE entry point for ML compiler;
wenzelm
parents:
70988
diff
changeset
|
28 |
|
71397 | 29 |
ISABELLE_DOCS_EXAMPLES="$ISABELLE_DOCS_EXAMPLES:\$ML_SOURCES/ROOT.ML" |