Page MenuHomeSolus

initial inclusion of ziglang
ClosedPublic

Authored by nazar on Jan 22 2022, 11:22 PM.
Tags
None
Referenced Files
F11034189: D12744.id31043.diff
Wed, Aug 9, 4:31 PM
F11034188: D12744.id31216.diff
Wed, Aug 9, 4:30 PM
F11034187: D12744.id31128.diff
Wed, Aug 9, 4:30 PM
F11034186: D12744.id31049.diff
Wed, Aug 9, 4:30 PM
F11034185: D12744.id31139.diff
Wed, Aug 9, 4:30 PM
F11034184: D12744.id.diff
Wed, Aug 9, 4:30 PM
F11034183: D12744.id31044.diff
Wed, Aug 9, 4:30 PM
F11026372: D12744.diff
Wed, Aug 9, 2:14 AM
Subscribers
None

Details

Summary

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. Resolves T9346

Test Plan

$workdir/zig init-exe
$workdir/zig build run
$workdir/zig build test

Diff Detail

Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 3112
Build 3112: arc lint + arc unit

Event Timeline

Few small changes needed

package.yml
14

cmake is in system.devel component. Anything in system.base or system.devel doesn't need to be added to builddeps.

16

llvm-clang-devel will bring this in already

17

Won't need the explicit llvm rundep here as libLLVM-13.so is listed in abi_used_libs

20

Could we also pass -DZIG_PREFER_CLANG_CPP_DYLIB=ON to link against libclang-cpp.so as well

This revision now requires changes to proceed.Jan 22 2022, 11:42 PM

applying requested changes

nazar edited the test plan for this revision. (Show Details)

add checks

Just two nits. Otherwise looks good to me, can land post sync.

package.yml
11

nit : correct number of spaces

15

nit: our cmake macro sets RelWithDebug, use optimize : speed if you want to build with -O3.

This revision now requires changes to proceed.Jan 26 2022, 4:36 PM

set build_type to RelWithDebug

Sorry I mean just remove CMAKE_BUILD_TYPE, it gets set in the macro : see https://github.com/getsolus/ypkg/blob/master/ypkg2/rc.yml#L14

CMAKE_BUILD_TYPE is not necessary

This revision is now accepted and ready to land.Feb 1 2022, 9:42 PM
This revision was automatically updated to reflect the committed changes.