summaryrefslogtreecommitdiffhomepage
path: root/userconfig-runner@Darwin-Clang.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-10 17:01:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-10 22:17:43 +0100
commit0e23ba9e5a565e34fee0f024e29ce162f420ec22 (patch)
treeeeaf0ec198ba8849117c9c21675a651e8c93acad /userconfig-runner@Darwin-Clang.cmake
parent67f0ff04d0fb71255d35bf7f31a684d7a2120c2a (diff)
add github action
Diffstat (limited to 'userconfig-runner@Darwin-Clang.cmake')
-rw-r--r--userconfig-runner@Darwin-Clang.cmake49
1 files changed, 49 insertions, 0 deletions
diff --git a/userconfig-runner@Darwin-Clang.cmake b/userconfig-runner@Darwin-Clang.cmake
new file mode 100644
index 00000000..7f526b9a
--- /dev/null
+++ b/userconfig-runner@Darwin-Clang.cmake
@@ -0,0 +1,49 @@
+sets(BOOL FLOORMAT_PRECOMPILED-HEADERS OFF)
+
+add_link_options(-framework IOKit)
+
+# for building submodule dependencies
+function(fm-userconfig-external-pre)
+ add_compile_options(-Wno-deprecated -Wno-unused-but-set-variable)
+endfunction()
+
+# for floormat sources only
+function(fm-userconfig-src)
+ add_compile_options(
+ -Wall -Wextra -Wpedantic -Wno-old-style-cast -Wno-padded -Weverything
+ )
+ add_compile_options(
+ -Wno-c++98-compat
+ -Wno-c++20-compat
+ -Wno-c++98-compat-pedantic
+ -Wno-logical-op-parentheses
+ -Wno-undefined-func-template
+ -Wno-switch-enum
+ -Wno-covered-switch-default
+ -Wno-old-style-cast
+ -Wno-global-constructors
+ -Wno-exit-time-destructors
+ -Wno-implicit-int-float-conversion
+ -Wno-shadow-field-in-constructor
+ -Wno-shadow
+ -Wno-ctad-maybe-unsupported
+ -Wno-documentation-unknown-command
+ -Wno-documentation
+ -Wno-ignored-attributes
+ -Wno-reserved-identifier
+ -Wno-zero-length-array
+ )
+ add_compile_options(
+ #-Werror
+ -Wno-error=float-equal
+ #-Wno-error=comma
+ -Wno-error=unused-parameter
+ -Wno-error=unused-private-field
+ -Wno-error=unused-variable
+ -Wno-error=unused-function
+ -Wno-error=unused-member-function
+ -Wno-error=unused-macros
+ -Wno-error=alloca
+ -Wno-error=double-promotion
+ )
+endfunction()