Skip to content

Commit de4aef4

Browse files
committed
yokai: use awk when sed is not good enough on macOS (detect shell script)
1 parent 710f53b commit de4aef4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/Yokai/Detection/detect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ do
5656
| sed -e 's/YOKAI_COMPILER/YOKAI_C_COMPILER/' \
5757
| sed -e 's/YOKAI_SYSTEM/YOKAI_TARGET_SYSTEM/' \
5858
| sed -e 's/YOKAI_ARCH/YOKAI_TARGET_ARCH/' \
59-
| sed -E 's/^([^=]+)=/\U\1=/' \
59+
| awk -F= '{print toupper($1) "=" $2}' \
6060
|| "${@}" "${file_path}" -o "${temp_file}"
6161

6262
rm "${temp_file}"

0 commit comments

Comments
 (0)