mirror of
https://github.com/danog/gllvm.git
synced 2024-12-02 16:47:57 +01:00
23 lines
342 B
Go
23 lines
342 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"github.com/SRI-CSL/gllvm/shared"
|
|
)
|
|
|
|
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)
|
|
|
|
}
|