Skip to content

Compilation warning from LLVM files on x.py check compiler #114935

@RalfJung

Description

@RalfJung

When working on the compiler, I get a warning each time I invoke x.py check compiler:

warning: In file included from llvm-wrapper/LLVMWrapper.h:18,
warning:                  from llvm-wrapper/PassWrapper.cpp:7:
warning: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/ci-llvm/include/llvm/Support/Host.h:16:5: warning: This header is deprecated, please use llvm/TargetParser/Host.h
warning:    16 |     "This header is deprecated, please use llvm/TargetParser/Host.h"
warning:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from llvm-wrapper/PassWrapper.cpp:28:
warning: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/ci-llvm/include/llvm/Support/Host.h:16:5: warning: This header is deprecated, please use llvm/TargetParser/Host.h
warning:    16 |     "This header is deprecated, please use llvm/TargetParser/Host.h"
warning:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from llvm-wrapper/LLVMWrapper.h:18,
warning:                  from llvm-wrapper/RustWrapper.cpp:1:
warning: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/ci-llvm/include/llvm/Support/Host.h:16:5: warning: This header is deprecated, please use llvm/TargetParser/Host.h
warning:    16 |     "This header is deprecated, please use llvm/TargetParser/Host.h"
warning:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from llvm-wrapper/LLVMWrapper.h:18,
warning:                  from llvm-wrapper/ArchiveWrapper.cpp:1:
warning: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/ci-llvm/include/llvm/Support/Host.h:16:5: warning: This header is deprecated, please use llvm/TargetParser/Host.h
warning:    16 |     "This header is deprecated, please use llvm/TargetParser/Host.h"
warning:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from llvm-wrapper/LLVMWrapper.h:18,
warning:                  from llvm-wrapper/CoverageMappingWrapper.cpp:1:
warning: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/ci-llvm/include/llvm/Support/Host.h:16:5: warning: This header is deprecated, please use llvm/TargetParser/Host.h
warning:    16 |     "This header is deprecated, please use llvm/TargetParser/Host.h"
warning:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from llvm-wrapper/LLVMWrapper.h:18,
warning:                  from llvm-wrapper/Linker.cpp:3:
warning: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/ci-llvm/include/llvm/Support/Host.h:16:5: warning: This header is deprecated, please use llvm/TargetParser/Host.h
warning:    16 |     "This header is deprecated, please use llvm/TargetParser/Host.h"
warning:       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I assume this started with #114048. Cc @nikic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions