Changeset f91b7bb


Ignore:
Timestamp:
03/07/2024 02:30:48 AM (3 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
ken/TL2024, lazarus, trunk, xry111/llvm18
Children:
7152c2b3
Parents:
c87567a
Message:

firefox: Adapt for LLVM (with Clang) 18

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/graphweb/firefox.xml

    rc87567a rf91b7bb  
    374374<screen><userinput remap="pre">patch -Np1 -i ../firefox-&firefox-version;-ffmpeg_6-1.patch</userinput></screen>-->
    375375
     376    <!-- https://github.com/rust-lang/rust-bindgen/pull/2689 -->
     377    <para>
     378      Adapt the shipped <application>rust-bindgen</application> copy for
     379      LLVM-18 and later, and tell <command>cargo</command> we've modified
     380      the code of <application>rust-bindgen</application> so the checksum
     381      verification of this crate should be skipped:
     382    </para>
     383
     384    <screen><userinput>sed -e "/match cursor.kind()/a                                    \
     385        CXCursor_LinkageSpec => return Err(ParseError::Recurse)," \
     386    -i third_party/rust/bindgen/ir/item.rs                        &amp;&amp;
     387
     388cat &gt;&gt; Cargo.toml &lt;&lt; EOF &amp;&amp;
     389<literal>[patch.crates-io.bindgen_0_64_0]
     390package = "bindgen"
     391version = "0.64.0"
     392path = "third_party/rust/bindgen"</literal>
     393EOF
     394
     395sed -r '/name = "bindgen"/,+5 s/^source|^checksum/#&amp;/' \
     396    -i Cargo.lock</userinput></screen>
     397
     398    <!-- https://hg.mozilla.org/mozilla-central/rev/ba6abbd36b49 -->
     399    <para>
     400      Adapt the WebRTC code to use 64-bit timestamp to fix a build
     401      failure with Clang-18 and later:
     402    </para>
     403
     404    <screen><userinput>sed 's/uint32_t timestamp/uint64_t timestamp/'                \
     405    -i dom/media/gmp-plugin-openh264/gmp-fake-openh264.cpp    \
     406       dom/media/gtest/TestGMPRemoveAndDelete.cpp             \
     407       dom/media/webrtc/libwebrtcglue/WebrtcGmpVideoCodec.cpp &amp;&amp;
     408
     409sed '/mInputImageMap/s/uint32_t/uint64_t/' \
     410    -i dom/media/webrtc/libwebrtcglue/WebrtcGmpVideoCodec.h</userinput></screen>
     411
    376412    <para>
    377413      Now invoke the Python <command>mach</command> script to compile the package.
Note: See TracChangeset for help on using the changeset viewer.