Fix GCC warnings in test build (#60734)
authorDavid Mason <davmason@microsoft.com>
Fri, 22 Oct 2021 01:22:36 +0000 (18:22 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 01:22:36 +0000 (18:22 -0700)
* fix warnings

* Trigger GCC leg when src/tests is modified

* Add src/native in default paths

Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
eng/pipelines/common/evaluate-default-paths.yml
eng/pipelines/runtime.yml
src/tests/profiler/native/eltprofiler/slowpatheltprofiler.cpp
src/tests/profiler/native/inlining/inlining.cpp

index 8cbcbdd..9a29f4d 100644 (file)
@@ -11,6 +11,7 @@ jobs:
       - src/libraries/System.Private.CoreLib/*
       - src/libraries/Native/Unix/System.Globalization.Native/*
       - src/libraries/Native/Unix/Common/*
+      - src/native/*
       exclude:
       - eng/Version.Details.xml
       - '*.md'
@@ -31,6 +32,7 @@ jobs:
       - src/libraries/Native/Unix/System.Globalization.Native/*
       - src/libraries/Native/Unix/Common/*
       - src/tests/BuildWasmApps/*
+      - src/native/*
       exclude:
       - eng/Version.Details.xml
       - '*.md'
index 07b4cbc..86e91c2 100644 (file)
@@ -109,6 +109,7 @@ jobs:
       condition: >-
         or(
           eq(dependencies.evaluate_paths.outputs['SetPathVars_coreclr.containsChange'], true),
+          eq(dependencies.evaluate_paths.outputs['SetPathVars_runtimetests.containsChange'], true),
           eq(variables['isFullMatrix'], true))
 
 #
index 032dd3a..b62ab2a 100644 (file)
@@ -19,12 +19,12 @@ using std::atomic;
 
 shared_ptr<SlowPathELTProfiler> SlowPathELTProfiler::s_profiler;
 
+#define PROFILER_STUB static void STDMETHODCALLTYPE
+
 #ifndef WIN32
 #define UINT_PTR_FORMAT "lx"
-#define PROFILER_STUB __attribute__((visibility("hidden"))) static void STDMETHODCALLTYPE
 #else // WIN32
 #define UINT_PTR_FORMAT "llx"
-#define PROFILER_STUB static void STDMETHODCALLTYPE
 #endif // WIN32
 
 PROFILER_STUB EnterStub(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo)
index 0cd4368..f6a1a7b 100644 (file)
@@ -13,12 +13,12 @@ using std::atomic;
 
 shared_ptr<InliningProfiler> InliningProfiler::s_profiler;
 
+#define PROFILER_STUB static void STDMETHODCALLTYPE
+
 #ifndef WIN32
 #define UINT_PTR_FORMAT "lx"
-#define PROFILER_STUB __attribute__((visibility("hidden"))) static void STDMETHODCALLTYPE
 #else // WIN32
 #define UINT_PTR_FORMAT "llx"
-#define PROFILER_STUB static void STDMETHODCALLTYPE
 #endif // WIN32
 
 PROFILER_STUB EnterStub(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo)