We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be6af46 commit c9cad2cCopy full SHA for c9cad2c
src/arduino.cc/builder/preprocess_sketch.go
@@ -105,6 +105,12 @@ func (s *ArduinoPreprocessorRunner) Run(ctx *types.Context) error {
105
return i18n.WrapError(err)
106
}
107
108
+ if runtime.GOOS == "windows" {
109
+ // chdir in the uppermost directory to avoid UTF-8 bug in clang (https://github.com/arduino/arduino-preprocessor/issues/2)
110
+ command.Dir = filepath.VolumeName(command.Args[0]) + "/"
111
+ //command.Args[0], _ = filepath.Rel(command.Dir, command.Args[0])
112
+ }
113
+
114
verbose := ctx.Verbose
115
if verbose {
116
fmt.Println(commandLine)
0 commit comments