Skip to content

Commit

Permalink
Fix handling of Windows backslash path in meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Feb 9, 2025
1 parent 87563ea commit eb6a806
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ run_command(
python,
'-c',
'''
open("@0@/.ignore", "w").write("""
import sys, pathlib
target = pathlib.Path(sys.argv[1]) / ".ignore"
target.write_text("""
# `.ignore` takes precedence over `.gitignore` in dev tools (vscode, ripgrep etc.)
# Here we overwrite `.gitignore` rule to allow search in `gdextension_api` & `src`
# folders.
Expand All @@ -343,7 +345,8 @@ python_distrib
python_prebuild-*
README.txt
""")
'''.format(meson.current_build_dir()),
''',
meson.current_build_dir(),
check: true,
)

Expand Down

0 comments on commit eb6a806

Please sign in to comment.