ccgo

package
v4.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 34 Imported by: 2

Documentation

Overview

Package ccgo implements the ccgo command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecEnv

func IsExecEnv() (r bool)

IsExecEnv reports whether the environment is set up for executing the command after the -exec option.

Types

type Task

type Task struct {
	D []string // -D
	I []string // -I
	L []string // -L
	O string   // -O
	U []string // -U

	E bool // -E
	// contains filtered or unexported fields
}

Task represents a compilation job.

func NewTask

func NewTask(goos, goarch string, args []string, stdout, stderr io.Writer, fs fs.FS) (r *Task)

NewTask returns a newly created Task. args[0] is the command name.

func (*Task) Exec

func (t *Task) Exec() (err error)

Exec executes a task having the "-exec=foo" option.

func (*Task) Main

func (t *Task) Main() (err error)

Main executes task.

Jump to

Keyboard shortcuts

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