winclangcl

package
v0.0.0-...-3f967bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2025 License: Apache-2.0, BSD-3-Clause, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWinClangCl

func NewWinClangCl() (handler.Handler, error)

Types

type WinClangCl

type WinClangCl struct {
	// contains filtered or unexported fields
}

WinClangCl 定义了windows clang-cl.exe编译

func (*WinClangCl) CanExecuteWithLocalIdleResource

func (cc *WinClangCl) CanExecuteWithLocalIdleResource(command []string) bool

func (*WinClangCl) FinalExecute

func (cc *WinClangCl) FinalExecute(args []string)

FinalExecute 清理临时文件

func (*WinClangCl) GetFilterRules

func (cc *WinClangCl) GetFilterRules() ([]dcSDK.FilterRuleItem, error)

GetFilterRules add file send filter

func (*WinClangCl) GetPreloadConfig

func (cc *WinClangCl) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)

func (*WinClangCl) InitExtra

func (cc *WinClangCl) InitExtra(extra []byte)

InitExtra receive the extra data from project settings and init the handle extra data

func (*WinClangCl) InitSandbox

func (cc *WinClangCl) InitSandbox(sandbox *dcSyscall.Sandbox)

InitSandbox set sandbox to task-cc

func (*WinClangCl) LocalExecute

func (cc *WinClangCl) LocalExecute(command []string) dcType.BKDistCommonError

LocalExecute 无需自定义本地处理

func (*WinClangCl) LocalExecuteNeed

func (cc *WinClangCl) LocalExecuteNeed(command []string) bool

LocalExecuteNeed 无需自定义本地处理

func (*WinClangCl) LocalLockWeight

func (cc *WinClangCl) LocalLockWeight(command []string) int32

LocalLockWeight decide local-execute lock weight, default 1

func (*WinClangCl) NeedRemoteResource

func (cc *WinClangCl) NeedRemoteResource(command []string) bool

NeedRemoteResource check whether this command need remote resource

func (*WinClangCl) NeedRetryOnRemoteFail

func (cc *WinClangCl) NeedRetryOnRemoteFail(command []string) bool

NeedRetryOnRemoteFail check whether need retry on remote fail

func (*WinClangCl) OnRemoteFail

func (cc *WinClangCl) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)

OnRemoteFail give chance to try other way if failed to remote execute

func (*WinClangCl) PostExecute

PostExecute 后置处理, 判断远程执行的结果是否正确

func (*WinClangCl) PostExecuteNeedLock

func (cc *WinClangCl) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool

func (*WinClangCl) PostLockWeight

func (cc *WinClangCl) PostLockWeight(result *dcSDK.BKDistResult) int32

PostLockWeight decide post-execute lock weight, default 1

func (*WinClangCl) PostWork

func (cc *WinClangCl) PostWork(config *dcType.BoosterConfig) error

func (*WinClangCl) PreExecute

func (cc *WinClangCl) PreExecute(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)

PreExecute 预处理

func (*WinClangCl) PreExecuteNeedLock

func (cc *WinClangCl) PreExecuteNeedLock(command []string) bool

func (*WinClangCl) PreLockWeight

func (cc *WinClangCl) PreLockWeight(command []string) int32

func (*WinClangCl) PreWork

func (cc *WinClangCl) PreWork(config *dcType.BoosterConfig) error

func (*WinClangCl) RemoteRetryTimes

func (cc *WinClangCl) RemoteRetryTimes() int

RemoteRetryTimes will return the remote retry times

func (*WinClangCl) RenderArgs

func (cc *WinClangCl) RenderArgs(config dcType.BoosterConfig, originArgs string) string

RenderArgs return the actual executing args with the origin args and config

func (*WinClangCl) ResultExtra

func (cc *WinClangCl) ResultExtra() (extra []byte)

ResultExtra return the extra message to record in project info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL