Skip to content

Commit 0d21997

Browse files
committed
[GR-80751] GraalPy PolyBench native images enable CI assertions
PullRequest: graalpython/4958
2 parents 6cc1611 + c9fb3a3 commit 0d21997

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎ci/python-gate.libsonnet‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,11 @@
359359
//------------------------------------------------------------------------------------------------------------------
360360
// graalpy gates
361361
//------------------------------------------------------------------------------------------------------------------
362-
local base_gate = $.os_arch_jdk_mixin + task_spec({
362+
local base_gate = $.os_arch_jdk_mixin + task_spec(evaluate_late("_4_build_with_assertions", {
363+
environment+: {
364+
BUILD_WITH_ASSERTIONS: "true",
365+
},
366+
})) + task_spec({
363367
// private
364368
tags:: self.task_name,
365369
task_name:: null,

‎mx.graalpython/mx_graalpython.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ def get_boolean_env(name, default=False):
149149
CI = get_boolean_env("CI")
150150
GITHUB_CI = get_boolean_env("GITHUB_CI")
151151
WIN32 = sys.platform == "win32"
152-
BUILD_NATIVE_IMAGE_WITH_ASSERTIONS = get_boolean_env('BUILD_WITH_ASSERTIONS', CI)
153-
GRAALPY_WITH_BOUNCYCASTLE = get_boolean_env("GRAALPY_WITH_BOUNCYCASTLE", False)
152+
BUILD_NATIVE_IMAGE_WITH_ASSERTIONS = get_boolean_env('BUILD_WITH_ASSERTIONS')
153+
GRAALPY_WITH_BOUNCYCASTLE = get_boolean_env("GRAALPY_WITH_BOUNCYCASTLE")
154154

155155
mx_gate.add_jacoco_excludes([
156156
"com.oracle.graal.python.pegparser.sst",
@@ -2709,7 +2709,7 @@ def graalpy_abiflags(*_):
27092709

27102710

27112711
def dev_tag(_=None):
2712-
if not get_boolean_env('GRAALPYTHONDEVMODE', False) or 'dev' not in SUITE.release_version():
2712+
if not get_boolean_env('GRAALPYTHONDEVMODE') or 'dev' not in SUITE.release_version():
27132713
mx.logv("GraalPy dev_tag: <0 because not in dev mode>")
27142714
return ''
27152715

0 commit comments

Comments
 (0)