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 CMake package defaultflags and runtimes support #5025

Merged
merged 3 commits into from
Apr 28, 2024

Conversation

Arthapz
Copy link
Member

@Arthapz Arthapz commented Apr 27, 2024

my last PR #4927 broke some cmake libraries from xrepo on windows (CMAKE_CXX_FLAGS override default flags)
so here a new version which use CMAKE_CXX_FLAGS_RELEASE and autodetect default flags

@Arthapz Arthapz marked this pull request as draft April 27, 2024 20:24
@Arthapz Arthapz force-pushed the fix-cmake-packages branch 2 times, most recently from 9857c48 to 417886b Compare April 27, 2024 21:00
@Arthapz Arthapz marked this pull request as ready for review April 27, 2024 21:01
@Arthapz Arthapz force-pushed the fix-cmake-packages branch 2 times, most recently from 4979b01 to c35e789 Compare April 27, 2024 21:05
@waruqi waruqi merged commit 1d3ff91 into xmake-io:dev Apr 28, 2024
18 of 19 checks passed
@waruqi waruqi added this to the v2.9.2 milestone Apr 28, 2024
SirLynix added a commit to NazaraEngine/ShaderLang that referenced this pull request Apr 29, 2024
Fixes a bug in XMake 2.9.1
see xmake-io/xmake#5025
@waruqi
Copy link
Member

waruqi commented May 17, 2024

It cannot get correct default flags for windows arm (cross).

xmake-io/xmake-repo#4038 (comment)

@waruqi
Copy link
Member

waruqi commented May 17, 2024

#5115

local runtimes = package:runtimes()
if runtimes then
local fake_target = {is_shared = function(_) return false end,
sourcekinds = function(_) return "c" end}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use package? it will break if package toolchain is changed.

#5542

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.

3 participants