Skip to content

Commit 9d69ec9

Browse files
David Tolnayfacebook-github-bot
authored andcommitted
Modernize fixups
Summary: Context: https://fb.workplace.com/groups/rust.language/posts/28376178518670727 Reviewed By: JakobDegen Differential Revision: D73962886 fbshipit-source-id: e6bad143f7dc9a89245eaf230df7ddbcd7615029
1 parent 1032d6a commit 9d69ec9

File tree

95 files changed

+188
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+188
-258
lines changed

shim/third-party/rust/fixups/ahash/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false

shim/third-party/rust/fixups/anyhow/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false

shim/third-party/rust/fixups/async-trait/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false

shim/third-party/rust/fixups/atomic/fixups.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
[[buildscript]]
9-
[buildscript.rustc_flags]
8+
buildscript.run = true

shim/third-party/rust/fixups/axum-core/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false

shim/third-party/rust/fixups/axum/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false

shim/third-party/rust/fixups/backtrace/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false

shim/third-party/rust/fixups/blake3/fixups.toml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false
99

1010
## The various X86 platform fixups
1111

12-
[platform_fixup.'cfg(target_arch = "x86_64")']
12+
['cfg(target_arch = "x86_64")']
1313
cfgs = ["blake3_sse2_ffi", "blake3_sse41_ffi", "blake3_avx2_ffi", "blake3_avx512_ffi"]
14-
buildscript = []
1514

1615
# , any(target_env = "fbcode", target_env = "gnu")
17-
[[platform_fixup.'cfg(all(target_arch = "x86_64", any(target_os = "linux", target_os = "macos")))'.buildscript]]
18-
[platform_fixup.'cfg(all(target_arch = "x86_64", any(target_os = "linux", target_os = "macos")))'.buildscript.cxx_library]
16+
[['cfg(all(target_arch = "x86_64", any(target_os = "linux", target_os = "macos")))'.cxx_library]]
1917
name = "simd_x86_unix"
2018
srcs = [
2119
"c/blake3.c",
@@ -35,8 +33,7 @@ compatible_with = [
3533
"prelude//os/constraints:macos",
3634
]
3735

38-
[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"))'.buildscript]]
39-
[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"))'.buildscript.cxx_library]
36+
[['cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"))'.cxx_library]]
4037
name = "simd_x86_windows_gnu"
4138
srcs = [
4239
"c/blake3.c",
@@ -53,8 +50,7 @@ compiler_flags = ["-mavx512f", "-mavx512vl"]
5350
headers = ["c/*.h"]
5451
compatible_with = ["prelude//os/constraints:windows"]
5552

56-
[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"))'.buildscript]]
57-
[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"))'.buildscript.cxx_library]
53+
[['cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"))'.cxx_library]]
5854
name = "simd_x86_windows_msvc"
5955
srcs = [
6056
"c/blake3.c",
@@ -70,18 +66,15 @@ compatible_with = ["prelude//os/constraints:windows"]
7066

7167
## ARM and AArch64 fixups
7268

73-
[platform_fixup.'cfg(any(target_arch = "aarch64", target_arch = "arm"))']
69+
['cfg(any(target_arch = "aarch64", target_arch = "arm"))']
7470
cfgs = ["blake3_neon"]
75-
buildscript = []
7671

77-
[[platform_fixup.'cfg(target_arch = "aarch64")'.buildscript]]
78-
[platform_fixup.'cfg(target_arch = "aarch64")'.buildscript.cxx_library]
72+
[['cfg(target_arch = "aarch64")'.cxx_library]]
7973
name = "simd_neon-aarch64"
8074
srcs = ["c/blake3_neon.c"]
8175
headers = ["c/*.h"]
8276

83-
[[platform_fixup.'cfg(target_arch = "arm")'.buildscript]]
84-
[platform_fixup.'cfg(target_arch = "arm")'.buildscript.cxx_library]
77+
[['cfg(target_arch = "arm")'.cxx_library]]
8578
name = "simd_neon-armv7"
8679
srcs = ["c/blake3_neon.c"]
8780
compiler_flags = ["-mfpu=neon-vfpv4", "-mfloat-abi=hard"]

shim/third-party/rust/fixups/bzip2-sys/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false

shim/third-party/rust/fixups/core-foundation-sys/fixups.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
66
# of this source tree.
77

8-
buildscript = []
8+
buildscript.run = false

0 commit comments

Comments
 (0)