Skip to content

Commit ff2a6d0

Browse files
Internal change
PiperOrigin-RevId: 923079737
1 parent 9c09634 commit ff2a6d0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

release/setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ def build_extension(self, ext):
7070

7171
# Build with bazel
7272
# Use --compilation_mode=opt for release builds
73-
cmd = ['bazel', 'build', ext.target, '--compilation_mode=opt']
73+
cmd = ['bazel']
74+
if sys.platform == 'win32':
75+
cmd.append('--output_user_root=C:/tmp')
76+
cmd.extend(['build', ext.target, '--compilation_mode=opt'])
7477
if sys.platform == 'win32':
7578
self.platform_config_windows(cmd, python_version)
7679
if sys.platform == 'darwin':

0 commit comments

Comments
 (0)