You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	compat/cuda/ptx2c: remove shell loop; fix BSD sed compat
This fixes building on macOS, and improves build times dramatically there
This commit is contained in:
		| @@ -27,10 +27,8 @@ IN="$2" | ||||
| NAME="$(basename "$IN" | sed 's/\..*//')" | ||||
|  | ||||
| printf "const char %s_ptx[] = \\" "$NAME" > "$OUT" | ||||
| while IFS= read -r LINE | ||||
| do | ||||
|     printf "\n\t\"%s\\\n\"" "$(printf "%s" "$LINE" | sed -e 's/\r//g' -e 's/["\\]/\\&/g')" >> "$OUT" | ||||
| done < "$IN" | ||||
| printf ";\n" >> "$OUT" | ||||
| echo >> "$OUT" | ||||
| sed -e "$(printf 's/\r//g')" -e 's/["\\]/\\&/g' -e "$(printf 's/^/\t"/')" -e 's/$/\\n"/' < "$IN" >> "$OUT" | ||||
| echo ";" >> "$OUT" | ||||
|  | ||||
| exit 0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user