Files
doris/thirdparty/patches/libdivide-5.0.patch
Amos Bird c231cbf610 [chore] Add Clang 18/19 Support (#47438)
This PR adds support to compile Doris backend with Clang 19.  

I've tested this PR with both Clang 16 and Clang 19 using:  
```bash  
env DISABLE_BUILD_AZURE=1 ./build.sh --be --clean  
```  
*(Azure was disabled due to challenges patching deps in
`azure-sdk-for-cpp-azure-core_1.10.3` via vcpkg.)*

I've released a new toolchain with GCC 14 and Clang 19 here:
[ldb_toolchain](https://github.com/amosbird/ldb_toolchain_gen/releases/tag/v0.23).

Happy New Year to the Doris community! 🎉  

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [x] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [x] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
2025-01-28 16:30:02 +08:00

12 lines
530 B
Diff

--- a/libdivide.h 2025-01-06 22:27:33.308725176 +0800
+++ b/libdivide.h 2025-01-06 22:27:41.517821664 +0800
@@ -3017,7 +3017,7 @@
T recover() const { return div.recover(); }
bool operator==(const divider<T, ALGO> &other) const {
- return div.denom.magic == other.denom.magic && div.denom.more == other.denom.more;
+ return div.denom.magic == other.div.denom.magic && div.denom.more == other.div.denom.more;
}
bool operator!=(const divider<T, ALGO> &other) const { return !(*this == other); }