SWDEV-470787 - Fixed undefined symbols for flags in static build

Change-Id: I7812c8924396d0df9ab331f9a1844aabbf5a9211


[ROCm/clr commit: fa07c33cba]
Этот коммит содержится в:
Ioannis Assiouras
2024-06-28 14:18:25 +01:00
родитель ff12be080d
Коммит a774b89a43
2 изменённых файлов: 4 добавлений и 3 удалений
+2 -2
Просмотреть файл
@@ -205,7 +205,7 @@ Flag Flag::flags_[] = {
} // namespace amd
#ifndef _WIN32
namespace {
namespace amd::flags {
#endif
#define DEFINE_RELEASE_FLAG_VALUE(type, name, value, help) type name = value;
#define DEFINE_DEBUG_FLAG_VALUE(type, name, value, help) DEBUG_ONLY(type name = value);
@@ -216,4 +216,4 @@ RUNTIME_FLAGS(DEFINE_DEBUG_FLAG_VALUE, DEFINE_RELEASE_FLAG_VALUE, DEFINE_DEBUG_F
#undef DEFINE_RELEASE_FLAG_VALUE
#ifndef _WIN32
}
#endif
#endif /*!_WIN32*/
+2 -1
Просмотреть файл
@@ -333,7 +333,7 @@ struct Flag {
#else
# define EXPORT_FLAG extern "C"
#endif
namespace {
namespace amd::flags {
#endif // !_WIN32
#define DECLARE_RELEASE_FLAG(type, name, value, help) EXPORT_FLAG type name;
@@ -349,5 +349,6 @@ RUNTIME_FLAGS(DECLARE_DEBUG_FLAG, DECLARE_RELEASE_FLAG, DECLARE_DEBUG_FLAG);
#undef DECLARE_RELEASE_FLAG
#ifndef _WIN32
}
using namespace amd::flags;
#endif // !_WIN32
#endif /*FLAGS_HPP_*/