mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 07:09:01 +01:00
Merge pull request #11 from dtzWill/fix/asm-regexp
parser.go: Fix regexp used for detecting asm input
This commit is contained in:
commit
bd2d3d1a27
@ -269,7 +269,7 @@ func getHashedPath(path string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (pr *parserResult) inputFileCallback(flag string, _ []string) {
|
func (pr *parserResult) inputFileCallback(flag string, _ []string) {
|
||||||
var regExp = regexp.MustCompile(`\\.(s|S)$`)
|
var regExp = regexp.MustCompile(`\.(s|S)$`)
|
||||||
pr.InputFiles = append(pr.InputFiles, flag)
|
pr.InputFiles = append(pr.InputFiles, flag)
|
||||||
if regExp.MatchString(flag) {
|
if regExp.MatchString(flag) {
|
||||||
pr.IsAssembly = true
|
pr.IsAssembly = true
|
||||||
|
Loading…
Reference in New Issue
Block a user