Skip to content

Commit

Permalink
test: fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Oct 7, 2024
1 parent 40622b0 commit acecab7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion field/generator/asm/amd64/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,12 @@ func GenerateFieldWrapper(w io.Writer, F *config.FieldConfig, asmDirBuildPath, a

f.WriteLn("// Code generated by gnark-crypto/generator. DO NOT EDIT.")
f.WriteLn(fmt.Sprintf("// We include the hash to force the Go compiler to recompile: %d", hash))
f.WriteLn(fmt.Sprintf("#include \"%s\"\n", filepath.Join(asmDirIncludePath, fileName)))
includePath := filepath.Join(asmDirIncludePath, fileName)
// on windows, we replace the "\" by "/"
if filepath.Separator == '\\' {
includePath = strings.ReplaceAll(includePath, "\\", "/")
}
f.WriteLn(fmt.Sprintf("#include \"%s\"\n", includePath))

return nil
}
Expand Down

0 comments on commit acecab7

Please sign in to comment.