cmd parser additions from curl.

This commit is contained in:
Ian A. Mason 2018-05-23 07:14:20 -07:00
parent c6e185927d
commit ee940a6a22
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@ package shared
// //
const gllvmVersion = "1.2.1" const gllvmVersion = "1.2.1"
const gllvmReleaseDate = "May 13 2018" const gllvmReleaseDate = "May 23 2018"
const osDARWIN = "darwin" const osDARWIN = "darwin"
const osLINUX = "linux" const osLINUX = "linux"

View File

@ -241,6 +241,7 @@ func parse(argList []string) parserResult {
"-print-multi-directory": {0, pr.compileUnaryCallback}, "-print-multi-directory": {0, pr.compileUnaryCallback},
"-print-multi-lib": {0, pr.compileUnaryCallback}, "-print-multi-lib": {0, pr.compileUnaryCallback},
"-print-libgcc-file-name": {0, pr.compileUnaryCallback}, "-print-libgcc-file-name": {0, pr.compileUnaryCallback},
"-print-search-dirs": {0, pr.compileUnaryCallback},
"-fprofile-arcs": {0, pr.compileLinkUnaryCallback}, "-fprofile-arcs": {0, pr.compileLinkUnaryCallback},
"-coverage": {0, pr.compileLinkUnaryCallback}, "-coverage": {0, pr.compileLinkUnaryCallback},
@ -272,6 +273,7 @@ func parse(argList []string) parserResult {
`^--sysroot=.+$`: {0, pr.compileUnaryCallback}, `^--sysroot=.+$`: {0, pr.compileUnaryCallback},
`^-print-prog-name=.*$`: {0, pr.compileUnaryCallback}, `^-print-prog-name=.*$`: {0, pr.compileUnaryCallback},
`^-print-file-name=.*$`: {0, pr.compileUnaryCallback}, `^-print-file-name=.*$`: {0, pr.compileUnaryCallback},
`^-mmacosx-version-min=.+$`: {0, pr.compileLinkUnaryCallback},
`^-mstack-alignment=.+$`: {0, pr.compileUnaryCallback}, //iam: linux kernel stuff `^-mstack-alignment=.+$`: {0, pr.compileUnaryCallback}, //iam: linux kernel stuff
`^-march=.+$`: {0, pr.compileUnaryCallback}, //iam: linux kernel stuff `^-march=.+$`: {0, pr.compileUnaryCallback}, //iam: linux kernel stuff
`^-mregparm=.+$`: {0, pr.compileUnaryCallback}, //iam: linux kernel stuff `^-mregparm=.+$`: {0, pr.compileUnaryCallback}, //iam: linux kernel stuff