Browse Source

new GLOBAL_CFLAGS macro

snermolaev 1 year ago
parent
commit
757daaf2c7
1 changed files with 8 additions and 0 deletions
  1. 8 0
      build/ymake.core.conf

+ 8 - 0
build/ymake.core.conf

@@ -3870,6 +3870,14 @@ macro CFLAGS(Flags...) {
    SET_APPEND_WITH_GLOBAL(USER_CFLAGS $Flags)
 }
 
+# tag:flags
+### @usage: GLOBAL_CFLAGS(compiler_flags)
+###
+### Add the specified flags to the compilation command of C and C++ files and propagate these flags to dependent projects
+macro GLOBAL_CFLAGS(Flags...) {
+   SET_APPEND_WITH_GLOBAL(USER_CFLAGS ${pre=GLOBAL :Flags})
+}
+
 # tag:flags
 ### @usage: MASMFLAGS(compiler flags)
 ### Add the specified flags to the compilation command of .masm files.