diff options
| author | Eric Joldasov <bratishkaerik@getgoogleoff.me> | 2024-05-14 22:49:12 +0500 |
|---|---|---|
| committer | Eric Joldasov <bratishkaerik@landless-city.net> | 2024-05-14 23:40:42 +0500 |
| commit | 34ed49c62d55e43afcc7be91391243d273985818 (patch) | |
| tree | ce30e3ec9031c5f4f0f3f4d3d4d29c0783d6f66a /lib/std/Target.zig | |
| parent | b59c722a3fed1b873d4f82f38d248775bfe23ae4 (diff) | |
| download | zig-34ed49c62d55e43afcc7be91391243d273985818.tar.gz zig-34ed49c62d55e43afcc7be91391243d273985818.zip | |
CMake: refactor `ZIG_PIE` and `ZIG_BUILD_ARGS`
Set `ZIG_PIE` default to be same as `CMAKE_POSITION_INDEPENDENT_CODE`, and
add check for situation when `ZIG_PIE` is set to True but CMake does not
support compiling position independent code. CMake's support is needed
for "zigcpp" target.
Also remove temporary variables for constructing `ZIG_BUILD_ARGS`,
instead use `list(APPEND ...)` functions.
Also remove long unused `ZIG_NO_LANGREF` variable.
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
Diffstat (limited to 'lib/std/Target.zig')
0 files changed, 0 insertions, 0 deletions
