[compiler-rt] d0761d5 - [compiler-rt] Allow to build on CYGWIN (#66348)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 01:13:55 PDT 2023
Author: Carlo Bramini
Date: 2023-09-15T11:13:51+03:00
New Revision: d0761d560a24b1b2b21f2cea67d19f3c244555ae
URL: https://github.com/llvm/llvm-project/commit/d0761d560a24b1b2b21f2cea67d19f3c244555ae
DIFF: https://github.com/llvm/llvm-project/commit/d0761d560a24b1b2b21f2cea67d19f3c244555ae.diff
LOG: [compiler-rt] Allow to build on CYGWIN (#66348)
If you try to build `compiler-rt` on CYGWIN, you will get message:
```
error: Unsupported target
```
Adding support for this platform. just needs to add testing if
`__CYGWIN__` is defined into `lib\builtins\int_lib.h`.
Added:
Modified:
compiler-rt/lib/builtins/int_lib.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/int_lib.h b/compiler-rt/lib/builtins/int_lib.h
index fb791ebc42eb16d..04ea2d910574bcf 100644
--- a/compiler-rt/lib/builtins/int_lib.h
+++ b/compiler-rt/lib/builtins/int_lib.h
@@ -49,7 +49,7 @@
#define SYMBOL_NAME(name) XSTR(__USER_LABEL_PREFIX__) #name
#if defined(__ELF__) || defined(__MINGW32__) || defined(__wasm__) || \
- defined(_AIX)
+ defined(_AIX) || defined(__CYGWIN__)
#define COMPILER_RT_ALIAS(name, aliasname) \
COMPILER_RT_ABI __typeof(name) aliasname __attribute__((__alias__(#name)));
#elif defined(__APPLE__)
More information about the llvm-commits
mailing list