mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 08:19:01 +01:00
21 lines
336 B
Go
21 lines
336 B
Go
package main
|
|
|
|
import (
|
|
"github.com/SRI-CSL/gllvm/shared"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
// Parse command line
|
|
var args = os.Args
|
|
args = args[1:]
|
|
|
|
exitCode := shared.Compile(args, "clang")
|
|
|
|
shared.LogInfo("Calling %v returned %v\n", os.Args, exitCode)
|
|
|
|
//important to pretend to look like the actual wrapped command
|
|
os.Exit(exitCode)
|
|
|
|
}
|