Skip to content

Commit d60601d

Browse files
committed
Variable Server could not find variable related to trick_sys.sched #315
Added a "-n" argument when calling ICG on Trick core. I had previously removed the "friend attr<class>" lines from Trick core classes. The -n argument instructs ICG to not create the offsetof calls that require the friend function and to process protected and private variables by default.
1 parent 00a0e8b commit d60601d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ endif
193193
# header files.
194194
.PHONY: icg_sim_serv
195195
icg_sim_serv: $(ICG_EXE)
196-
${TRICK_HOME}/bin/trick-ICG -s -m ${TRICK_CXXFLAGS} ${TRICK_SYSTEM_CXXFLAGS} ${TRICK_HOME}/include/trick/files_to_ICG.hh
196+
${TRICK_HOME}/bin/trick-ICG -s -m -n ${TRICK_CXXFLAGS} ${TRICK_SYSTEM_CXXFLAGS} ${TRICK_HOME}/include/trick/files_to_ICG.hh
197197

198198
# 1.1.1.4.1 Build the Interface Code Generator (ICG) executable.
199199
$(ICG_EXE) :
@@ -387,7 +387,7 @@ uninstall:
387387
# ICG all sim_services files (for testing and debugging ICG).
388388
# The -f flag forces io_src files to be regenerated whether or not they need to be.
389389
ICG: $(ICG_EXE)
390-
${TRICK_HOME}/bin/trick-ICG -f -s -m ${TRICK_CXXFLAGS} ${TRICK_SYSTEM_CXXFLAGS} ${TRICK_HOME}/include/trick/files_to_ICG.hh
390+
${TRICK_HOME}/bin/trick-ICG -f -s -m -n ${TRICK_CXXFLAGS} ${TRICK_SYSTEM_CXXFLAGS} ${TRICK_HOME}/include/trick/files_to_ICG.hh
391391

392392
# This builds a tricklib share library.
393393
trick_lib: $(SIM_SERV_DIRS) $(UTILS_DIRS) | $(TRICK_LIB_DIR)

0 commit comments

Comments
 (0)