summaryrefslogtreecommitdiff
path: root/src/dlls
diff options
context:
space:
mode:
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>2019-02-07 04:28:29 -0500
committerJan Vorlicek <janvorli@microsoft.com>2019-02-07 10:28:29 +0100
commit328f79f1d9c17dd1ac00901631cd90a41e788022 (patch)
treeba2a543c43c40d87c98945432d2cf026b575e5b5 /src/dlls
parent8152fc3c8d42fd9e8b80872bef63a29baa64229e (diff)
downloadcoreclr-328f79f1d9c17dd1ac00901631cd90a41e788022.tar.gz
coreclr-328f79f1d9c17dd1ac00901631cd90a41e788022.tar.bz2
coreclr-328f79f1d9c17dd1ac00901631cd90a41e788022.zip
Cleanup LLVM assumption (#22456)
We want to support GNU compilation for CoreCLR. Luckily both LLVM and GNU compilers define __GNUC__ and there are a lot of things they can share.
Diffstat (limited to 'src/dlls')
-rw-r--r--src/dlls/mscordac/mscordac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dlls/mscordac/mscordac.cpp b/src/dlls/mscordac/mscordac.cpp
index 94fdac5809..d126704a60 100644
--- a/src/dlls/mscordac/mscordac.cpp
+++ b/src/dlls/mscordac/mscordac.cpp
@@ -9,9 +9,9 @@
//
// This dummy reference to CLRDataCreateInstance prevents the LLVM toolchain from optimizing this important export out.
//
-#ifdef __llvm__
+#ifdef __GNUC__
__attribute__((used))
-#endif // __llvm__
+#endif // __GNUC__
void
DummyReferenceToExportedAPI()
{