Skip to content

Commit

Permalink
Fix "rm -rf" for Powershell. Fix location of antlr-ng.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaby76 committed Jan 17, 2025
1 parent 724a7a6 commit 34bfe92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _scripts/templates/Cpp/cmake/st.FindANTLR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ find_package(Java QUIET COMPONENTS Runtime)
add_custom_command(
OUTPUT ${ANTLR_${Name}_OUTPUTS}
<if(antlrng_tool)>
COMMAND node node_modules/antlr-ng/dist/cli/runner.js
COMMAND node build/node_modules/antlr-ng/dist/cli/runner.js
<else>
COMMAND antlr4<if(os_win)>.exe<else><endif> -v ${ANTLR4_TAG}
<endif>
Expand Down
2 changes: 1 addition & 1 deletion _scripts/templates/Cpp/st.build.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated from trgen <version>
function rmrf([string]$Path) {
try {
Remove-Item -Recurse -ErrorAction:Stop $Path
Remove-Item -Recurse -ErrorAction:Stop -force $Path
} catch [System.Management.Automation.ItemNotFoundException] {
# Ignore
$Error.Clear()
Expand Down

0 comments on commit 34bfe92

Please sign in to comment.