mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-26 22:24:27 -05:00
fsmonitor-settings: stub in platform-specific incompatibility checking on MacOS
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
e3fc6efce3
commit
7b8c024f51
9
compat/fsmonitor/fsm-settings-darwin.c
Normal file
9
compat/fsmonitor/fsm-settings-darwin.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "cache.h"
|
||||
#include "config.h"
|
||||
#include "repository.h"
|
||||
#include "fsmonitor-settings.h"
|
||||
|
||||
enum fsmonitor_reason fsm_os__incompatible(struct repository *r)
|
||||
{
|
||||
return FSMONITOR_REASON_ZERO;
|
||||
}
|
||||
@@ -148,6 +148,7 @@ ifeq ($(uname_S),Darwin)
|
||||
endif
|
||||
endif
|
||||
FSMONITOR_DAEMON_BACKEND = darwin
|
||||
FSMONITOR_OS_SETTINGS = darwin
|
||||
BASIC_LDFLAGS += -framework CoreServices
|
||||
endif
|
||||
ifeq ($(uname_S),SunOS)
|
||||
|
||||
@@ -296,6 +296,9 @@ endif()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
add_compile_definitions(HAVE_FSMONITOR_OS_SETTINGS)
|
||||
list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-win32.c)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
add_compile_definitions(HAVE_FSMONITOR_OS_SETTINGS)
|
||||
list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-darwin.c)
|
||||
endif()
|
||||
|
||||
set(EXE_EXTENSION ${CMAKE_EXECUTABLE_SUFFIX})
|
||||
|
||||
Reference in New Issue
Block a user