mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-02 12:32:03 +01:00
Merge pull request #22821 from hrydgard/libretro-buildbot-fixes
libretro: Fix the Linux buildbot build, print the compiler version
This commit is contained in:
2 files changed
+12
-1
No files matched your search
+2
-1
@@ -634,7 +634,8 @@ if(USE_FFMPEG AND NOT BUILD_BUNDLED_FFMPEG)
|
||||
# Check if we need to use av_frame_get_buffer instead of avcodec_default_get_buffer
|
||||
endif()
|
||||
|
||||
find_package(ZLIB)
|
||||
# 1.2.9 for uncompress2 (Core/Util/PSARUnpack.cpp). Older system zlibs (Ubuntu 16.04's) get the bundled one.
|
||||
find_package(ZLIB 1.2.9)
|
||||
if(ZLIB_FOUND AND NOT ANDROID)
|
||||
include_directories(${ZLIB_INCLUDE_DIR})
|
||||
add_compile_definitions(SHARED_ZLIB)
|
||||
|
||||
@@ -9,6 +9,16 @@
|
||||
#include <cstdlib>
|
||||
#include <mutex>
|
||||
|
||||
// Puts the exact compiler version in the build log, to see what libretro's buildbot runs. Clang reports
|
||||
// this pragma as a warning, so only MSVC and GCC.
|
||||
#define LIBRETRO_STRINGIFY2(x) #x
|
||||
#define LIBRETRO_STRINGIFY(x) LIBRETRO_STRINGIFY2(x)
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#pragma message("Compiler: MSVC " LIBRETRO_STRINGIFY(_MSC_FULL_VER) ", _MSVC_LANG " LIBRETRO_STRINGIFY(_MSVC_LANG))
|
||||
#elif defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma message("Compiler: GCC " __VERSION__ ", __cplusplus " LIBRETRO_STRINGIFY(__cplusplus))
|
||||
#endif
|
||||
|
||||
#include "Common/CPUDetect.h"
|
||||
#include "Common/Log.h"
|
||||
#include "Common/Log/LogManager.h"
|
||||
|
||||
Reference in new issue
Block a user