diff options
| author | mikhnenko <[email protected]> | 2026-03-24 10:33:19 +0300 |
|---|---|---|
| committer | mikhnenko <[email protected]> | 2026-03-24 11:13:34 +0300 |
| commit | b78217ec0f1b5a9564f84d1ddfa01fd1d48e314d (patch) | |
| tree | eda8888fc1904fb5ffc6ca6692b4585468870734 /build/scripts | |
| parent | 0141f1259e6a7f7a1a8d916925e06545b56eb04a (diff) | |
Use clang20 for bpf
commit_hash:3b3a73c72b12bf59c5ff009a535b93abadb1f96a
Diffstat (limited to 'build/scripts')
| -rw-r--r-- | build/scripts/clang_wrapper.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build/scripts/clang_wrapper.py b/build/scripts/clang_wrapper.py index 71e0f03088e..f99da29cfc0 100644 --- a/build/scripts/clang_wrapper.py +++ b/build/scripts/clang_wrapper.py @@ -31,10 +31,13 @@ def fix_path(p): return p -def drop_stl(s): +def drop_non_bpf_flags(s): if s.startswith('-I') and 'contrib/libs/cxxsupp/libcxx/include' in s: return None + if s.startswith('-march='): + return None + return s @@ -54,7 +57,7 @@ if __name__ == '__main__': for i in range(len(args) - 1): if args[i] == '-target' and args[i + 1] == 'bpf': # bpf should not be able to include stl headers - args = list(filter(None, [drop_stl(s) for s in args])) + args = list(filter(None, [drop_non_bpf_flags(s) for s in args])) break cmd = [path] + args |
