File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 49
49
50
50
class CustomLibBuilder (PlatformIOLibBuilder ):
51
51
52
- PARSE_SRC_BY_H_NAME = False
53
-
54
- # Max depth of nested includes:
55
- # -1 = unlimited
56
- # 0 - disabled nesting
57
- # >0 - number of allowed nested includes
58
- CCONDITIONAL_SCANNER_DEPTH = 0
59
-
60
- # For cases when sources located not only in "src" dir
61
- @property
62
- def src_dir (self ):
63
- return self .path
52
+ def build (self ):
53
+ if self .env .GetBuildType () == "debug" :
54
+ self .env .ConfigureDebugFlags ()
55
+ return PlatformIOLibBuilder .build (self )
64
56
65
57
66
58
def generate_ldscript (default_ldscript_path ):
@@ -151,7 +143,7 @@ def build_custom_lib(lib_path, lib_manifest=None):
151
143
lib_manifest = lib_manifest or {"name" : os .path .basename (lib_path )}
152
144
env .Append (
153
145
EXTRA_LIB_BUILDERS = [
154
- PlatformIOLibBuilder (env , lib_path , lib_manifest .copy ())
146
+ CustomLibBuilder (env , lib_path , lib_manifest .copy ())
155
147
]
156
148
)
157
149
You can’t perform that action at this time.
0 commit comments