theodelrieu / conan-darwin-toolchain

Conan build require to cross build to any darwin platform
MIT License
31 stars 21 forks source link

Debug and release with wrong file size #8

Closed paulocoutinhox closed 5 years ago

paulocoutinhox commented 5 years ago

Hi,

I think that have something wrong with debug/release version. The compiled binaries have wrong size. Debug version is bigger in all platforms, but only for iOS debug is smaller than Release, and Release is very big in file size.

Debug: 47,1 mb Release: 116,9 mb

See:

image

Can debug/release configuration be wrong in your project?

theodelrieu commented 5 years ago

What are the compiler flags in both cases? I need a reproducible case, I cannot do much with an image.

paulocoutinhox commented 5 years ago

Hi,

I have a full working example here: https://github.com/ezored/ezored

Only clone and execute:

python make.py target ios_framework conan
python make.py target ios_framework build
python make.py target ios_framework package

Profile: https://github.com/ezored/ezored/blob/master/files/targets/ios_framework/conan/profile/ezored_ios_framework_profile

Recipe: https://github.com/ezored/ezored/blob/master/files/targets/ios_framework/conan/recipe/conanfile.py

Conan install with params (but it is the same for all - and only on iOS this problem happen): https://github.com/ezored/ezored/blob/master/files/targets/ios_framework/verbs/conan.py#L55

theodelrieu commented 5 years ago

This is most likely due to bitcode. In debug mode, there is only a marker whereas in release the whole bitcode is included in the binary.

paulocoutinhox commented 5 years ago

Ok, so, there is no problem, is this?

theodelrieu commented 5 years ago

Nope, I'm closing this one