This repository was archived by the owner on Jul 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -392,11 +392,11 @@ following attempts to determine the latest toolchain snapshot and extract the
392392identifier for it.
393393
394394``` shell
395- xpath 2> /dev/null $( find /Library/Developer/Toolchains ~ /Library/Developer/Toolchains -type d -depth 1 -regex ' .*/swift-DEVELOPMENT-SNAPSHOT-.*.xctoolchain | sort -u | tail -n 1)/Info.plist "/plist/dict/key[. = ' CFBundleIdentifier' ]/following-sibling::string[1]//text()"
395+ xpath 2> /dev/null $( find /Library/Developer/Toolchains ~ /Library/Developer/Toolchains -type d -depth 1 -regex ' .*/swift-DEVELOPMENT-SNAPSHOT-.*.xctoolchain' | sort -u | tail -n 1) /Info.plist " /plist/dict/key[. = 'CFBundleIdentifier']/following-sibling::string[1]//text()"
396396```
397397This allows one to build the package as:
398398``` shell
399- TOOLCHAINS=$(xpath 2>/dev/null $(find /Library/Developer/Toolchains ~/Library/Developer/Toolchains -type d -depth 1 -regex ' .* /swift-DEVELOPMENT-SNAPSHOT-.* .xctoolchain | sort -u | tail -n 1) /Info.plist " /plist/dict/key[. = 'CFBundleIdentifier']/following-sibling::string[1]//text()" ) swift build -Xswiftc -DTENSORFLOW_USE_STANDARD_TOOLCHAIN -Xcc -I/Library/tensorflow-2.4.0/usr/include -Xlinker -L/Library/tensorflow-2.4.0/usr/lib
399+ TOOLCHAINS=$( xpath 2> /dev/null $( find /Library/Developer/Toolchains ~ /Library/Developer/Toolchains -type d -depth 1 -regex ' .*/swift-DEVELOPMENT-SNAPSHOT-.*.xctoolchain' | sort -u | tail -n 1) /Info.plist " /plist/dict/key[. = 'CFBundleIdentifier']/following-sibling::string[1]//text()" ) swift build -Xswiftc -DTENSORFLOW_USE_STANDARD_TOOLCHAIN -Xcc -I/Library/tensorflow-2.4.0/usr/include -Xlinker -L/Library/tensorflow-2.4.0/usr/lib
400400```
401401
402402### Running tests
You can’t perform that action at this time.
0 commit comments