-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix valueType using valueRefl instead of TypeOf.
Also add Makefile to help build binaries for infracopilot
- Loading branch information
1 parent
c3788ac
commit a672c38
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,8 @@ keyvalue.js.tmpl | |
|
||
node_modules/ | ||
/*.yaml | ||
|
||
# binaries | ||
/engine | ||
/iac | ||
/klotho |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
GO_FILES := $(wildcard pkg/**/*.go) go.sum go.mod | ||
|
||
engine: $(GO_FILES) | ||
CGO_ENABLED=1 \ | ||
GOOS=linux \ | ||
GOARCH=amd64 \ | ||
CC="zig cc -target x86_64-linux-musl" \ | ||
CXX="zig c++ -target x86_64-linux-musl" \ | ||
go build --tags extended -o engine -ldflags="-s -w" ./cmd/engine | ||
|
||
iac: $(GO_FILES) | ||
CGO_ENABLED=1 \ | ||
GOOS=linux \ | ||
GOARCH=amd64 \ | ||
CC="zig cc -target x86_64-linux-musl" \ | ||
CXX="zig c++ -target x86_64-linux-musl" \ | ||
go build --tags extended -o iac -ldflags="-s -w" ./cmd/iac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters