@@ -13,7 +13,7 @@ build --experimental_guard_against_concurrent_changes
13
13
# Default to optimized builds
14
14
# Override via: "-c dbg" or --compilation_mode=dbg
15
15
build --compilation_mode=opt
16
- # Used in TensorFlow, so we have to enable it here as well .
16
+ # Legacy from when we depended on TensorFlow, might not be needed in IREE .
17
17
common --experimental_repo_remote_exec
18
18
# Actually printing output on errors is... a useful default
19
19
test --test_output=errors
@@ -59,8 +59,6 @@ build:generic_gcc --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
59
59
build:generic_gcc --copt=-Wno-unused-but-set-parameter
60
60
build:generic_gcc --copt=-Wno-comment
61
61
build:generic_gcc --copt=-Wno-attributes
62
- # NOTE: from a TF dep: external/upb/upb/upb.c and fails on GCC 10.
63
- build:generic_gcc --copt=-Wno-stringop-truncation
64
62
65
63
###############################################################################
66
64
# Options for "generic_clang" builds: these options should generally apply to
@@ -159,12 +157,10 @@ build:generic_clang --linkopt=-Wl,--fatal-warnings
159
157
###############################################################################
160
158
161
159
build:macos_clang --config=generic_clang
162
- build:macos_clang --per_file_copt=tensorflow,iree_tf_compiler@-Wno-unused-variable
163
- build:macos_clang --per_file_copt=tensorflow,iree_tf_compiler,utils@-Wno-range-loop-analysis
160
+ build:macos_clang --per_file_copt=utils@-Wno-range-loop-analysis
164
161
165
162
build:macos_clang_release --config=macos_clang
166
- build:macos_clang_release --per_file_copt=tensorflow,iree_tf_compiler@-Wno-unused-variable
167
- build:macos_clang_release --per_file_copt=tensorflow,iree_tf_compiler,utils@-Wno-range-loop-analysis
163
+ build:macos_clang_release --per_file_copt=utils@-Wno-range-loop-analysis
168
164
build:macos_clang_release --compilation_mode=opt
169
165
build:macos_clang_release --copt=-DNDEBUG
170
166
@@ -277,7 +273,6 @@ build:remote_cache_bazel_ci --config=_remote_cache_base
277
273
# included for clarity and so that this reference is automatically updated by
278
274
# manage_images.py
279
275
build:remote_cache_bazel_ci --host_platform_remote_properties_override='properties:{name:"cache-silo-key" value:"gcr.io/iree-oss/swiftshader-bleeding-edge@sha256:b3cce73eb9f41d67981bc8f00e98fd66fe3487caec1bcbf38d4039dcc61e499d"}'
280
- build:remote_cache_bazel_tf_ci --host_platform_remote_properties_override='properties:{name:"cache-silo-key" value:"gcr.io/iree-oss/frontends-swiftshader@sha256:da14cc93637d3bfad469a670d4d7a49982df5d107b775331965e3bacb981d4cf"}'
281
276
282
277
283
278
###############################################################################
@@ -337,37 +332,10 @@ build:_msvc_base --per_file_copt=farmhash@/wd4319 # zero extending to T of great
337
332
build:_msvc_base --linkopt=/IGNORE:4217 # mismatch import/export declspec
338
333
build:_msvc_base --linkopt=/IGNORE:4001 # no object files
339
334
340
- # Flags to make tensorflow build.
341
- # Some of these are also of general use and fine to enable globally for windows.
342
- build:_msvc_base --copt=/arch:AVX
343
- # TensorFlow requires the "monolithic" build mode for now on Windows.
344
- build:_msvc_base --define framework_shared_object=false
345
-
346
- # Workaround WinGDI.h defining `ERROR`, which conflicts with logging macros.
347
- # Note that IREE and TensorFlow both `#undef ERROR` and define their own
348
- # separate logging constants with the same name, but IREE needs the Windows
349
- # "graphics device interface" (GDI) for certain GUI sample projects.
350
- build:_msvc_base --per_file_copt=tensorflow@-DNOGDI
351
-
352
- # Disables TensorFlow eigen bloat and reduces compile times.
353
- build:_msvc_base --define=override_eigen_strong_inline=true
354
-
355
- # Another TensorFlow flag from their config script.
356
- build:_msvc_base --define with_default_optimizations=true
357
-
358
335
# Separate configs for different MSVC versions as we might want slightly different options.
359
336
build:msvc2017 --config=_msvc_base
360
337
build:msvc2019 --config=_msvc_base
361
338
362
- # TensorFlow builds depend on this flag, but it doesn't appear to work with
363
- # gmock in some of our unit tests, so only enable it for TensorFlow files.
364
- # MSVC (Windows): Standards-conformant preprocessor mode
365
- # See https://docs.microsoft.com/en-us/cpp/preprocessor/preprocessor-experimental-overview
366
- build:msvc2017 --per_file_copt=tensorflow@/experimental:preprocessor
367
- # It's also called different things in different MSVC versions and will spam the logs
368
- # if we use the old name with a newer msvc.
369
- build:msvc2019 --per_file_copt=tensorflow@/Zc:preprocessor
370
-
371
339
# Assume the newer version and alias to --config=windows
372
340
build:msvc --config=msvc2019
373
341
build:windows --config=msvc
0 commit comments