Skip to content

Commit b256be9

Browse files
authored
Fix generation of idedata (#44)
1 parent c9c410c commit b256be9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎extra_script.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def build_microros(*args, **kwargs):
112112
# Add library path
113113
global_env.Append(LIBPATH=[builder.library_path])
114114

115+
def update_env():
115116
# Add required defines
116117
global_env.Append(CPPDEFINES=[("CLOCK_MONOTONIC", 1)])
117118

@@ -150,3 +151,5 @@ def build_microros(*args, **kwargs):
150151
# Do not build library on clean_microros target or when IDE fetches C/C++ project metadata
151152
if set(["clean_microros", "_idedata", "idedata"]).isdisjoint(set(COMMAND_LINE_TARGETS)):
152153
build_microros()
154+
155+
update_env()

0 commit comments

Comments
 (0)