Skip to content

Commit 2cc2926

Browse files
committed
Do not build native image with assertions when profiling
1 parent 26d96ca commit 2cc2926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,6 @@ def graalpy_standalone_home(standalone_type, enterprise=False, dev=False, build=
760760

761761
mx_args = ['-p', SUITE.dir, *(['--env', env_file] if env_file else [])]
762762
mx_args.append("--extra-image-builder-argument=-g")
763-
if BUILD_NATIVE_IMAGE_WITH_ASSERTIONS:
764-
mx_args.append("--extra-image-builder-argument=-ea")
765763

766764
pgo_profile = os.environ.get("GRAALPY_PGO_PROFILE")
767765
if pgo_profile is not None:
@@ -775,6 +773,8 @@ def graalpy_standalone_home(standalone_type, enterprise=False, dev=False, build=
775773
mx_args.append(f"--extra-image-builder-argument=--pgo-instrument")
776774
mx_args.append(f"--extra-image-builder-argument=-H:+UnlockExperimentalVMOptions")
777775
mx_args.append(f"--extra-image-builder-argument=-H:+ProfilingLCOV")
776+
elif BUILD_NATIVE_IMAGE_WITH_ASSERTIONS:
777+
mx_args.append("--extra-image-builder-argument=-ea")
778778

779779
if mx_gate.get_jacoco_agent_args() or (build and not DISABLE_REBUILD):
780780
mx_build_args = mx_args

0 commit comments

Comments
 (0)