Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support set global policies in xmake.lua #784

Closed
4 tasks done
waruqi opened this issue May 13, 2020 · 1 comment
Closed
4 tasks done

Support set global policies in xmake.lua #784

waruqi opened this issue May 13, 2020 · 1 comment

Comments

@waruqi
Copy link
Member

waruqi commented May 13, 2020

Apis

  • set_policy

v2.3.4

@waruqi waruqi added this to the v2.3.4 milestone May 13, 2020
@waruqi waruqi changed the title Support set policies Support set global policies in xmake.lua May 13, 2020
@waruqi
Copy link
Member Author

waruqi commented May 14, 2020

I have finished it and we can run xmake l core.project.policy.policies to show all builtin policies.

$ xmake l core.project.policy.policies
{ 
  "check.auto_map_flags" = { 
    type = "boolean",
    description = "Enable map gcc flags to the current compiler and linker automatically.",
    default = true 
  },
  "build.across_targets_in_parallel" = { 
    type = "boolean",
    description = "Enable compile the source files for each target in parallel.",
    default = true 
  },
  "check.auto_ignore_flags" = { 
    type = "boolean",
    description = "Enable check and ignore unsupported flags automatically.",
    default = true 
  } 
}

@waruqi waruqi closed this as completed May 14, 2020
@waruqi waruqi pinned this issue May 15, 2020
@waruqi waruqi unpinned this issue Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant