quote all of the regular expressions

Summary:
Without the quote, the \ is not properly forwarded to Bazel.

Test Plan: Verify subcommands.

Reviewers: seemethere

Subscribers:

Tasks:

Tags:

Pull Request resolved: https://github.com/pytorch/pytorch/pull/79312

Approved by: https://github.com/malfet, https://github.com/seemethere
This commit is contained in:
Michael Andreas Dagitses
2022-06-13 06:21:21 -07:00
committed by PyTorch MergeBot
parent 3ac27bb6ad
commit 8b03f2a93a

View File

@ -49,11 +49,11 @@ build:cpu-only --@rules_cuda//cuda:enable_cuda=False
# On the bright side, this means we don't have to more broadly apply
# the exceptions to an entire target.
build --per_file_copt='^//.*\.(cpp|cc)$'@-Werror=type-limits
build --per_file_copt=^//.*\.cu$@--compiler-options=-Werror=type-limits
build --per_file_copt='^//.*\.cu$'@--compiler-options=-Werror=type-limits
build --per_file_copt='^//.*\.(cpp|cc)$'@-Werror=unused-function
build --per_file_copt=^//.*\.cu$@--compiler-options=-Werror=unused-function
build --per_file_copt='^//.*\.cu$'@--compiler-options=-Werror=unused-function
build --per_file_copt='^//.*\.(cpp|cc)$'@-Werror=unused-variable
build --per_file_copt=^//.*\.cu$@--compiler-options=-Werror=unused-variable
build --per_file_copt='^//.*\.cu$'@--compiler-options=-Werror=unused-variable
build --per_file_copt=//:aten/src/ATen/RegisterCompositeExplicitAutograd.cpp@-Wno-error=unused-function
build --per_file_copt=//:aten/src/ATen/RegisterCompositeImplicitAutograd.cpp@-Wno-error=unused-function