cmd

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commandline

type Commandline struct {
	Program string
	Srcs    []string
	// *.cc *.cpp *.c
	FileType string
	// /Fo -o
	Obj string
	// -I ./ /I./ -I./ -msvc /FI
	Includes []string
	// -D /D
	Macros []string
	// /MT /MD
	Runtimes []string
	//O1 O2 O3
	Opts []string
	// /std:c++11
	Std string
	// /W
	Warnings []string
	// /Yc
	Pchs []string
	// -target
	Target string

	Others []string

	Unsupported []string
}

func Parse

func Parse(argv []string) (Commandline, error)

func (*Commandline) RenderToPreprocess

func (cmd *Commandline) RenderToPreprocess() []string

输出预处理的命令

func (*Commandline) RenderToServerSide

func (cmd *Commandline) RenderToServerSide(src string) []string

输出服务端编译命令参数列表

Jump to

Keyboard shortcuts

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