Skip to content

Commit

Permalink
change g++/gcc regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Oseltamivir committed Nov 3, 2024
1 parent 9e39642 commit 6859606
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions script/get-generic-sys-util/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
"env": {
"CM_SYS_UTIL_NAME": "g++11",
"CM_SYS_UTIL_VERSION_CMD": "g++-11 --version",
"CM_SYS_UTIL_VERSION_RE": "^.*([0-9]+(\\.[0-9]+)+).*",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 1
"CM_SYS_UTIL_VERSION_RE": "\\b(\\d+\\.\\d+(?:\\.\\d+)?)\\b",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 0
},
"state": {
"g++11": {
Expand All @@ -122,8 +122,8 @@
"env": {
"CM_SYS_UTIL_NAME": "g++12",
"CM_SYS_UTIL_VERSION_CMD": "g++-12 --version",
"CM_SYS_UTIL_VERSION_RE": "^.*([0-9]+(\\.[0-9]+)+).*",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 1
"CM_SYS_UTIL_VERSION_RE": "\\b(\\d+\\.\\d+(?:\\.\\d+)?)\\b",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 0
},
"state": {
"g++12": {
Expand All @@ -137,8 +137,8 @@
"env": {
"CM_SYS_UTIL_NAME": "g++9",
"CM_SYS_UTIL_VERSION_CMD": "g++-9 --version",
"CM_SYS_UTIL_VERSION_RE": "^.*([0-9]+(\\.[0-9]+)+).*",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 1
"CM_SYS_UTIL_VERSION_RE": "\\b(\\d+\\.\\d+(?:\\.\\d+)?)\\b",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 0
},
"state": {
"g++9": {
Expand All @@ -152,8 +152,8 @@
"env": {
"CM_SYS_UTIL_NAME": "gcc11",
"CM_SYS_UTIL_VERSION_CMD": "gcc-11 --version",
"CM_SYS_UTIL_VERSION_RE": "^.*([0-9]+(\\.[0-9]+)+).*",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 1
"CM_SYS_UTIL_VERSION_RE": "\\b(\\d+\\.\\d+(?:\\.\\d+)?)\\b",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 0
},
"state": {
"gcc11": {
Expand All @@ -166,7 +166,7 @@
"env": {
"CM_SYS_UTIL_NAME": "gcc9",
"CM_SYS_UTIL_VERSION_CMD": "gcc-9 --version",
"CM_SYS_UTIL_VERSION_RE": "^.*([0-9]+(\\.[0-9]+)+).*",
"CM_SYS_UTIL_VERSION_RE": "\\b(\\d+\\.\\d+(?:\\.\\d+)?)\\b",
"CM_TMP_VERSION_DETECT_GROUP_NUMBER": 0
},
"state": {
Expand Down

0 comments on commit 6859606

Please sign in to comment.