Skip to content

Commit 4cdc836

Browse files
committed
Feat: Let Linux/Darwin/Windows users pick their C++ version
Signed-off-by: Patrick M. Niedzielski <[email protected]>
1 parent 8525a1f commit 4cdc836

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

configure

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,9 +1077,10 @@ if [[ -n "${NTF_CONFIGURE_SANITIZER}" ]]; then
10771077
NTF_CONFIGURE_UFID_CANONICAL="${NTF_CONFIGURE_UFID_CANONICAL}_${NTF_CONFIGURE_SANITIZER}"
10781078
fi
10791079

1080-
if [[ "${NTF_CONFIGURE_UNAME}" == "Linux" ]] || \
1081-
[[ "${NTF_CONFIGURE_UNAME}" == "Darwin" ]] || \
1082-
[[ "${NTF_CONFIGURE_UNAME}" == "Windows" ]]; then
1080+
if { [[ "${NTF_CONFIGURE_UNAME}" == "Linux" ]] || \
1081+
[[ "${NTF_CONFIGURE_UNAME}" == "Darwin" ]] || \
1082+
[[ "${NTF_CONFIGURE_UNAME}" == "Windows" ]]; } && \
1083+
[[ ! "${NTF_CONFIGURE_UFID_CANONICAL}" =~ cpp[0-9]{2} ]]; then
10831084
NTF_CONFIGURE_UFID_CANONICAL="${NTF_CONFIGURE_UFID_CANONICAL}_cpp20"
10841085
fi
10851086

0 commit comments

Comments
 (0)