Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[compiler-rt][windows][arm64] building with COMPILER_RT_INCLUDE_TESTS causes linker error #66600

@farzonl

Description

@farzonl

Patform:
OS: Windows 11 Version 22H2 (Build 22621.2283)
clang version 16.0.0
Target: aarch64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
Commit im on: 5bdd5d0

Action:

cmake -GNinja -DLLVM_ENABLE_PROJECTS=llvm;compiler-rt -DCMAKE_BUILD_TYPE=Release \
 -DLLVM_ENABLE_PDB=ON -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD=AArch64 \
-DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe \
 -DCOMPILER_RT_INCLUDE_TESTS=TRUE -DCMAKE_LINKER=lld-link.exe  \
-S llvm-project\llvm -B compiler-rt_build

ninja -C llvm_build

Then to build the compiler rt tests:

cd llvm_build
ninja check-all

Error im seeing

LINK : fatal error LNK1104: cannot open file 'stl_asan.lib'

is this related to https://github.com/microsoft/STL/blob/main/stl/src/asan.cpp?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions