Skip to content

Commit

Permalink
Fix printchplbuilds.py error on GASNET_VERSION (chapel-lang#26356)
Browse files Browse the repository at this point in the history
Previously printchplbuilds.py was broken, probably by myself in chapel-lang#25875

Example:
```
$ ./util/chplenv/printchplbuilds.py
Traceback (most recent call last):
  File "./util/chplenv/printchplbuilds.py", line 466, in <module>
    main(sys.argv)
  File "./util/chplenv/printchplbuilds.py", line 373, in main
    build = Parse(path)
  File "./util/chplenv/printchplbuilds.py", line 133, in Parse
    var = varNames[state]
KeyError: <State.GASNET_VERSION: 11>
```

[Contributed by @bonachea. Reviewed and merged by @jabraham17]
  • Loading branch information
jabraham17 authored Dec 6, 2024
2 parents 6a6fd26 + b144cfc commit 32d4050
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions util/chplenv/printchplbuilds.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class State(Enum):
TARGET_ARCH = 8
COMM_SUBSTRATE = 9
GASNET_SEGMENT = 10
GASNET_VERSION = 11

# Maps component prefix to corresponding environment variable.

Expand Down Expand Up @@ -93,8 +92,7 @@ class State(Enum):
State.HWLOC: State.RE2,
State.RE2: State.PREFIX,
State.COMM_SUBSTRATE: State.GASNET_SEGMENT,
State.GASNET_SEGMENT: State.GASNET_VERSION,
State.GASNET_VERSION: State.PREFIX
State.GASNET_SEGMENT: State.PREFIX
}

# Some of the CHPL_*_DEBUG variables add a "-debug" suffix to the component
Expand Down

0 comments on commit 32d4050

Please sign in to comment.