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

Fix detection of target language for qt projects #3317

Merged
merged 2 commits into from
Jan 28, 2023

Conversation

xaizek
Copy link
Contributor

@xaizek xaizek commented Jan 27, 2023

Stray change in 02fb7ef broke it such that language set via set_languages() wasn't detected and -std=c++11 was appended after -std flag that came from set_languages() in xmake.lua.

To reproduce:

  1. xmake create -tqt.quickapp
  2. vim xmake.lua and add set_languages("c++17")
  3. xmake --verbose and look at -std= options

Stray change in 02fb7ef broke it such
that language set via `set_languages()` wasn't detected and `-std=c++11`
was appended after `-std` flag that came from `set_languages()` in
`xmake.lua`.

To reproduce:
 1. `xmake create -tqt.quickapp`
 2. `vim xmake.lua` and add `set_languages("c++17")`
 3. `xmake --verbose` and look at `-std=` options
xmake/rules/qt/load.lua Outdated Show resolved Hide resolved
@waruqi waruqi added this to the v2.7.7 milestone Jan 28, 2023
@waruqi waruqi merged commit 52ddcb2 into xmake-io:dev Jan 28, 2023
@xaizek xaizek deleted the fix-cxx-ver-in-qt branch January 28, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants