ccgo

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: BSD-3-Clause Imports: 36 Imported by: 0

README

LiberaPay receives patrons

ccgo4/lib

Package ccgo4/lib is a C compiler producing Go code.

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.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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