From dbbae59e1781c8b10b4485df3e29aa55f075b37d Mon Sep 17 00:00:00 2001 From: Alexander Frick Date: Mon, 4 Sep 2023 10:01:10 -0500 Subject: [PATCH] remove ,-pclmul from rustflags[] --- arm/build/config/compiler/BUILD.gn | 2 +- arm/raspi/build/config/compiler/BUILD.gn | 2 +- other/AVX2/build/config/compiler/BUILD.gn | 14 +++++++------- src/build/config/compiler/BUILD.gn | 14 +++++++------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/arm/build/config/compiler/BUILD.gn b/arm/build/config/compiler/BUILD.gn index 59160c2d..22484474 100644 --- a/arm/build/config/compiler/BUILD.gn +++ b/arm/build/config/compiler/BUILD.gn @@ -999,7 +999,7 @@ config("compiler") { "-Zremap-cwd-prefix=.", # Full RUSTC optimizations. - "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", + "-Copt-level=3", ] if (!is_win || force_rustc_color_output) { diff --git a/arm/raspi/build/config/compiler/BUILD.gn b/arm/raspi/build/config/compiler/BUILD.gn index d3765024..07a30eac 100644 --- a/arm/raspi/build/config/compiler/BUILD.gn +++ b/arm/raspi/build/config/compiler/BUILD.gn @@ -990,7 +990,7 @@ config("compiler") { "-Zremap-cwd-prefix=.", # Full RUSTC optimizations. - "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", + "-Copt-level=3", ] if (!is_win || force_rustc_color_output) { diff --git a/other/AVX2/build/config/compiler/BUILD.gn b/other/AVX2/build/config/compiler/BUILD.gn index d320ac99..1d611106 100644 --- a/other/AVX2/build/config/compiler/BUILD.gn +++ b/other/AVX2/build/config/compiler/BUILD.gn @@ -990,7 +990,7 @@ config("compiler") { "-Zremap-cwd-prefix=.", # Full RUSTC optimizations. - "-Copt-level=3", "-Ctune-cpu=haswell", "-Ctarget-feature=+aes,+avx,+avx2,-pclmul", + "-Copt-level=3", "-Ctune-cpu=haswell", "-Ctarget-feature=+aes,+avx,+avx2", ] if (!is_win || force_rustc_color_output) { @@ -1007,7 +1007,7 @@ config("compiler") { rustflags += [ "-Cembed-bitcode=no" ] } if (is_official_build) { - rustflags += [ "-Ccodegen-units=1", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2,-pclmul", ] + rustflags += [ "-Ccodegen-units=1", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2", ] } if (!rust_prebuilt_stdlib) { # When building against the Chromium Rust stdlib (which we compile) always @@ -2518,7 +2518,7 @@ config("optimize_max") { } else { cflags = [ "-O3" ] + common_optimize_on_cflags } - rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2,-pclmul", ] + rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2", ] } } @@ -2551,13 +2551,13 @@ config("optimize_speed") { } else { cflags = [ "-O3" ] + common_optimize_on_cflags } - rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2,-pclmul", ] + rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2", ] } } config("optimize_fuzzing") { cflags = [ "-O3" ] + common_optimize_on_cflags - rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2,-pclmul", ] + rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2", ] ldflags = common_optimize_on_ldflags visibility = [ ":default_optimization" ] } @@ -2817,7 +2817,7 @@ config("symbols") { ] } } - rustflags += [ "-g", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2,-pclmul", ] + rustflags += [ "-g", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2", ] } # Minimal symbols. @@ -2902,7 +2902,7 @@ config("minimal_symbols") { asmflags = cflags } - rustflags += [ "-Cdebuginfo=1", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2,-pclmul", ] + rustflags += [ "-Cdebuginfo=1", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2", ] } # This configuration contains function names only. That is, the compiler is diff --git a/src/build/config/compiler/BUILD.gn b/src/build/config/compiler/BUILD.gn index 3c9a057e..af8c0c3e 100644 --- a/src/build/config/compiler/BUILD.gn +++ b/src/build/config/compiler/BUILD.gn @@ -990,7 +990,7 @@ config("compiler") { "-Zremap-cwd-prefix=.", # Full RUSTC optimizations. - "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", + "-Copt-level=3", "-Ctarget-feature=+aes,+avx", ] if (!is_win || force_rustc_color_output) { @@ -1007,7 +1007,7 @@ config("compiler") { rustflags += [ "-Cembed-bitcode=no" ] } if (is_official_build) { - rustflags += [ "-Ccodegen-units=1", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", ] + rustflags += [ "-Ccodegen-units=1", "-Copt-level=3", "-Ctarget-feature=+aes,+avx", ] } if (!rust_prebuilt_stdlib) { # When building against the Chromium Rust stdlib (which we compile) always @@ -2518,7 +2518,7 @@ config("optimize_max") { } else { cflags = [ "-O3" ] + common_optimize_on_cflags } - rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", ] + rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx", ] } } @@ -2551,13 +2551,13 @@ config("optimize_speed") { } else { cflags = [ "-O3" ] + common_optimize_on_cflags } - rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", ] + rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx", ] } } config("optimize_fuzzing") { cflags = [ "-O3" ] + common_optimize_on_cflags - rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", ] + rustflags = [ "-Copt-level=3", "-Ctarget-feature=+aes,+avx", ] ldflags = common_optimize_on_ldflags visibility = [ ":default_optimization" ] } @@ -2817,7 +2817,7 @@ config("symbols") { ] } } - rustflags += [ "-g", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", ] + rustflags += [ "-g", "-Copt-level=3", "-Ctarget-feature=+aes,+avx", ] } # Minimal symbols. @@ -2902,7 +2902,7 @@ config("minimal_symbols") { asmflags = cflags } - rustflags += [ "-Cdebuginfo=1", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,-pclmul", ] + rustflags += [ "-Cdebuginfo=1", "-Copt-level=3", "-Ctarget-feature=+aes,+avx", ] } # This configuration contains function names only. That is, the compiler is