mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Build: Do not warn for local builds
This commit is contained in:
parent
d6258fce54
commit
6712ac0a72
@ -47,8 +47,9 @@ if errorlevel 1 (
|
||||
|
||||
echo // This is a generated file. > "%GIT_VERSION_FILE%"
|
||||
echo. >> "%GIT_VERSION_FILE%"
|
||||
echo #define RPCS3_GIT_VERSION "unknown" >> "%GIT_VERSION_FILE%"
|
||||
echo #define RPCS3_GIT_BRANCH "unknown" >> "%GIT_VERSION_FILE%"
|
||||
echo #define RPCS3_GIT_VERSION ^"local_build^" >> "%GIT_VERSION_FILE%"
|
||||
echo #define RPCS3_GIT_BRANCH ^"local_build^" >> "%GIT_VERSION_FILE%"
|
||||
echo #define RPCS3_GIT_FULL_BRANCH ^"local_build^" >> "%GIT_VERSION_FILE%"
|
||||
echo. >> "%GIT_VERSION_FILE%"
|
||||
echo // If you don't want this file to update/recompile, change to 1. >> "%GIT_VERSION_FILE%"
|
||||
echo #define RPCS3_GIT_VERSION_NO_UPDATE 0 >> "%GIT_VERSION_FILE%"
|
||||
|
@ -1,6 +1,6 @@
|
||||
set(RPCS3_GIT_VERSION "unknown")
|
||||
set(RPCS3_GIT_BRANCH "unknown")
|
||||
set(RPCS3_GIT_FULL_BRANCH "unknown")
|
||||
set(RPCS3_GIT_VERSION "local_build")
|
||||
set(RPCS3_GIT_BRANCH "local_build")
|
||||
set(RPCS3_GIT_FULL_BRANCH "local_build")
|
||||
|
||||
find_package(Git)
|
||||
if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git/")
|
||||
|
@ -93,7 +93,7 @@ void main_window::Init()
|
||||
Q_EMIT RequestGlobalStylesheetChange(m_gui_settings->GetCurrentStylesheetPath());
|
||||
ConfigureGuiFromSettings(true);
|
||||
|
||||
if (const std::string_view branch_name = rpcs3::get_full_branch(); branch_name != "RPCS3/rpcs3/master")
|
||||
if (const std::string_view branch_name = rpcs3::get_full_branch(); branch_name != "RPCS3/rpcs3/master" && branch_name != "local_build")
|
||||
{
|
||||
gui_log.warning("Experimental Build Warning! Build origin: %s", branch_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user