How to use relative paths in build flags?

Well, I found out how to get it working, for me I needed quotation marks to get it working. So just like this:

build_flags =
    ; -I "${platformio.workspace_dir}/../" ; This accesses the current project directory
    -I "${platformio.lib_dir}/arduino_fakes/src/core"

Without these quotations it did not work.

1 Like