mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 07:19:00 +01:00
issue #30 (letting travis test it)
This commit is contained in:
parent
911a9312a3
commit
dd2cde4454
@ -38,9 +38,9 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
// issue #30: "path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
// issue #30: "strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type parserResult struct {
|
type parserResult struct {
|
||||||
@ -352,7 +352,9 @@ func getArtifactNames(pr parserResult, srcFileIndex int, hidden bool) (objBase s
|
|||||||
} else {
|
} else {
|
||||||
srcFile := pr.InputFiles[srcFileIndex]
|
srcFile := pr.InputFiles[srcFileIndex]
|
||||||
var _, baseNameWithExt = path.Split(srcFile)
|
var _, baseNameWithExt = path.Split(srcFile)
|
||||||
var baseName = strings.TrimSuffix(baseNameWithExt, filepath.Ext(baseNameWithExt))
|
// issue #30: main.cpp and main.c cause conflicts.
|
||||||
|
// var baseName = strings.TrimSuffix(baseNameWithExt, filepath.Ext(baseNameWithExt))
|
||||||
|
var baseName = baseNameWithExt
|
||||||
bcBase = fmt.Sprintf(".%s.o.bc", baseName)
|
bcBase = fmt.Sprintf(".%s.o.bc", baseName)
|
||||||
if hidden {
|
if hidden {
|
||||||
objBase = fmt.Sprintf(".%s.o", baseName)
|
objBase = fmt.Sprintf(".%s.o", baseName)
|
||||||
|
Loading…
Reference in New Issue
Block a user