<ExcludeList Include="$(XunitTestBinBase)/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b37646/*">
<Issue>Varargs not supported on this platform</Issue>
</ExcludeList>
- <ExcludeList Include="$(XunitTestBinBase)/Loader/NativeLibs/FromNativePaths/*">
- <Issue>Issue building native components for the test.</Issue>
- </ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/JIT/Directed/pinning/object-pin/*">
<Issue>Issue building native components for the test.</Issue>
</ExcludeList>
<Issue>needs triage</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/Loader/NativeLibs/FromNativePaths/*">
- <Issue>needs triage</Issue>
+ <Issue>This requires the native assets to be in the test folder, which is currently not the case when building against packages.</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest612/Generated612/*">
<Issue>needs triage</Issue>
set(CMAKE_SHARED_LIBRARY_PREFIX "")
-set(SOURCES FromNativePaths_lib.cpp FromNativePaths_lib.def)
+set(SOURCES FromNativePaths_lib.cpp)
add_library(FromNativePaths_lib SHARED ${SOURCES})
install(TARGETS FromNativePaths_lib DESTINATION Loader/NativeLibs)
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-extern "C" bool NativeFunc()
+#if defined(__clang__)
+#define EXPORT_API extern "C" __attribute__((visibility("default")))
+#elif defined(_MSC_VER)
+#define EXPORT_API extern "C" __declspec(dllexport)
+#endif
+
+EXPORT_API bool NativeFunc()
{
return true;
}