We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 390c51b commit 79e14f8Copy full SHA for 79e14f8
defs.bzl
@@ -43,11 +43,12 @@ default_compiler_flags = [
43
# nvrtc library which we load canonically anyway
44
"-DUSE_DIRECT_NVRTC",
45
"-DUSE_RUY_QMATMUL",
46
-] + ([] if native.host_info().os.is_windows else [
+] + select({
47
# XNNPACK depends on an updated version of pthreadpool interface, whose implementation
48
# includes <pthread.h> - a header not available on Windows.
49
- "-DUSE_XNNPACK",
50
-]) + (["-O1"] if native.read_config("fbcode", "build_mode_test_label", "") == "dev-nosan" else [])
+ "DEFAULT": ["-DUSE_XNNPACK"],
+ "ovr_config//os:windows": [],
51
+}) + (["-O1"] if native.read_config("fbcode", "build_mode_test_label", "") == "dev-nosan" else [])
52
53
compiler_specific_flags = {
54
"clang": [
0 commit comments