Skip to content

Commit ac84b12

Browse files
kanglantcopybara-github
authored andcommitted
Update configure.py to set Clang as the compiler for Linux CPU build
PiperOrigin-RevId: 537923719
1 parent 9b4a57e commit ac84b12

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

site/en/install/source.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,16 @@ git checkout <em>branch_name</em> # r2.2, r2.3, etc.
102102
</pre>
103103

104104

105-
## Optional: Configure the build
105+
## Configure the build
106106

107107
TensorFlow builds are configured by the `.bazelrc` file in the repository's
108108
root directory. The `./configure` or `./configure.py` scripts can be used to
109109
adjust common settings.
110110

111-
If you need to change the configuration, run the `./configure` script from
112-
the repository's root directory. This script will prompt you for the location of
113-
TensorFlow dependencies and asks for additional build configuration options
114-
(compiler flags, for example). Refer to the _Sample session_ section for
115-
details.
111+
Please run the `./configure` script from the repository's root directory. This
112+
script will prompt you for the location of TensorFlow dependencies and asks for
113+
additional build configuration options (compiler flags, for example). Refer to
114+
the _Sample session_ section for details.
116115

117116
<pre class="devsite-terminal devsite-click-to-copy">
118117
./configure
@@ -132,24 +131,28 @@ session may differ):
132131
<h4 class="showalways">View sample configuration session</h4>
133132
<pre class="devsite-terminal">
134133
./configure
135-
You have bazel 5.0.0 installed.
134+
You have bazel 6.1.0 installed.
136135
Please specify the location of python. [Default is /Library/Frameworks/Python.framework/Versions/3.9/bin/python3]:
137136

138137

139138
Found possible Python library paths:
140139
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
141140
Please input the desired Python library path to use. Default is [/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages]
142141

143-
Do you wish to build TensorFlow with ROCm support? [y/N]: n
142+
Do you wish to build TensorFlow with ROCm support? [y/N]:
144143
No ROCm support will be enabled for TensorFlow.
145144

146-
Do you wish to build TensorFlow with CUDA support? [y/N]: n
145+
Do you wish to build TensorFlow with CUDA support? [y/N]:
147146
No CUDA support will be enabled for TensorFlow.
148147

149-
Do you wish to download a fresh release of clang? (Experimental) [y/N]: n
150-
Clang will not be downloaded.
148+
Do you want to use Clang to build TensorFlow? [Y/n]:
149+
Clang will be used to compile TensorFlow.
151150

152-
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]: n
151+
Please specify the path to clang executable. [Default is /usr/lib/llvm-16/bin/clang]:
152+
153+
You have Clang 16.0.4 installed.
154+
155+
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]:
153156

154157

155158
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: n

0 commit comments

Comments
 (0)