Commit e63df3d
committed
build: apply the release compile flags to nativescript-regular
The non-optimized branch of the runtime CMakeLists was treated as a
local-debug-only path, but it is also what builds
runtime-regular-release.aar, published as nativescript-regular.aar.
test-app/app/build.gradle switches an app onto that artifact whenever
its package.json sets android.useV8Symbols or any NativeScript
dependency declares nativescript.useV8Symbols, so apps that need V8's
symbols exported were shipping a runtime built without
-fvisibility=hidden, -ffunction-sections or -fno-data-sections.
Gate the branch on CMAKE_BUILD_TYPE instead: AGP passes Debug for the
debug variant and RelWithDebInfo for release, so local native debugging
keeps plain -g while every shipped flavour gets the release flags. Also
drops the stale commented-out duplicate of the optimized flag line.1 parent 55a357a commit e63df3d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | | - | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
0 commit comments