Skip to content

Commit

Permalink
Add compatibility with the latest PlatformIO Core
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Nov 12, 2021
1 parent 85d5584 commit 8446f1c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions builder/autotiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
from platformio import fs
from platformio.builder.tools.platformio import SRC_FILTER_DEFAULT

try:
from platformio.project.helpers import get_project_lib_dir
except ImportError:
from platformio.util import get_projectlib_dir as get_project_lib_dir


Import("env")

Expand Down Expand Up @@ -99,7 +94,7 @@ def build_autotiler(build_dir, generator, model_path):
"include")
],
LIBPATH=[join(AUTOTILER_DIR, "lib"),
get_project_lib_dir()] + tmpenv.get("LIBPATH", []),
env.GetProjectConfig().get("platformio", "lib_dir")] + tmpenv.get("LIBPATH", []),
LIBS=["tile"])

# CHECK "libtile.a"
Expand Down

0 comments on commit 8446f1c

Please sign in to comment.