diff options
author | Ivan Butygin <ivan.butygin@gmail.com> | 2023-11-23 15:23:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 15:23:01 +0300 |
commit | 6248c24876d81d83544af02399d46813dbea869c (patch) | |
tree | 943b949b25a4ce022792fc4995b52ae2a66a9cf2 /clang/lib/Frontend | |
parent | 7b97d5048a8f5261bf493ad8989f0eaed59c4bf1 (diff) | |
download | llvm-6248c24876d81d83544af02399d46813dbea869c.zip llvm-6248c24876d81d83544af02399d46813dbea869c.tar.gz llvm-6248c24876d81d83544af02399d46813dbea869c.tar.bz2 |
[mlir] Workaround for export lib generation on Windows for `mlir_arm_sme_abi_stubs` (#73147)
Using mlir cmake in downstream project fails with error
```
CMake Error at D:/projs/llvm/llvm-install/lib/cmake/mlir/MLIRTargets.cmake:2537 (message):
The imported target "mlir_arm_sme_abi_stubs" references the file
"D:/projs/llvm/llvm-install/lib/mlir_arm_sme_abi_stubs.lib"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"D:/projs/llvm/llvm-install/lib/cmake/mlir/MLIRTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
D:/projs/llvm/llvm-install/lib/cmake/mlir/MLIRConfig.cmake:37 (include)
mlir/CMakeLists.txt:5 (find_package)
```
Windows cmake needs export libaries but it seems they are only being
generated if you have at least one exported symbol.
Add export attributes to symbols.
Not sure what the best approach to fix this (probably we should just
disable this lib on windows entirely), but it fixed things for me
locally.
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions