tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

05_disable_lsx.patch (1705B)


      1 https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6772565
      2 
      3 diff --git a/libyuv.gyp b/libyuv.gyp
      4 index d4973b0..e853ba3 100644
      5 --- a/libyuv.gyp
      6 +++ b/libyuv.gyp
      7 @@ -26,30 +26,15 @@
      8     'clang%': 0,
      9     # Link-Time Optimizations.
     10     'use_lto%': 0,
     11 -    # Enable LASX on LoongArch by default.
     12 -    "loong_lasx%": 1,
     13 -    # Enable LSX on LoongArch by default. Has no effect if loong_lasx is
     14 -    # enabled because LASX implies LSX according to the architecture specs.
     15 -    "loong_lsx%": 1,
     16     'mips_msa%': 0,  # Default to msa off.
     17     'build_neon': 0,
     18 -    "build_lasx": 0,
     19 -    "build_lsx": 0,
     20     'build_msa': 0,
     21 -
     22     'conditions': [
     23        ['(target_arch == "armv7" or target_arch == "armv7s" or \
     24        (target_arch == "arm" and arm_version >= 7) or target_arch == "arm64")\
     25        and (arm_neon == 1 or arm_neon_optional == 1)', {
     26          'build_neon': 1,
     27        }],
     28 -       ['(target_arch == "loong64") and (loong_lasx == 1)', {
     29 -         "build_lasx": 1,
     30 -         "build_lsx": 1,  # LASX implies LSX.
     31 -       }],
     32 -       ['(target_arch == "loong64") and (loong_lsx == 1)', {
     33 -         "build_lsx": 1,
     34 -       }],
     35        ['(target_arch == "mipsel" or target_arch == "mips64el")\
     36        and (mips_msa == 1)',
     37        {
     38 @@ -75,16 +60,6 @@
     39             '-Wno-unused-parameter',
     40          ],
     41         }],
     42 -        ["build_lasx != 0", {
     43 -          "cflags": ["-mlasx"],
     44 -        }, {  # build_lasx == 0
     45 -          "cflags": ["-mno-lasx"],
     46 -        }],
     47 -        ["build_lsx != 0", {
     48 -          "cflags": ["-mlsx"],
     49 -        }, {  # build_lsx == 0
     50 -          "cflags": ["-mno-lsx"],
     51 -        }],
     52         ['build_neon != 0', {
     53           'defines': [
     54             'LIBYUV_NEON',