[project] syncs CMake and shell build options for macOS file watcher

GitOrigin-RevId: 4d197f5a3e9c67b3c282cfbc63a2a7fe28c50801
This commit is contained in:
Roman Shevchenko
2019-05-14 18:34:56 +02:00
committed by intellij-monorepo-bot
parent 2da40b2b73
commit d3289e9d96
2 changed files with 5 additions and 1 deletions

View File

@@ -5,7 +5,9 @@ if(NOT APPLE)
message(FATAL_ERROR "macOS only.") message(FATAL_ERROR "macOS only.")
endif() endif()
set(CMAKE_C_FLAGS "-O2 -Wall -Wextra -Wpedantic -Wno-newline-eof")
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 11)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.8)
find_library(CORE_SERVICES CoreServices) find_library(CORE_SERVICES CoreServices)

View File

@@ -1,3 +1,5 @@
#!/bin/sh #!/bin/sh
clang -arch x86_64 -mmacosx-version-min=10.8 -framework CoreServices -o fsnotifier fsnotifier.c C_FLAGS="-std=c11 -O2 -Wall -Wextra -Wpedantic -Wno-newline-eof"
clang -arch x86_64 -mmacosx-version-min=10.8 -framework CoreServices -std=c11 $C_FLAGS -o fsnotifier fsnotifier.c