Commits

David Lin  committed 89e9ba4

workaround for clang

  • Participants
  • Parent commits 9b6dda8

Comments (0)

Files changed (1)

File lab_4/b98902077/compiler/Makefile

 ifeq ($(SYSNAME), Linux)
 	LIBS += -ldl -lpthread
 endif
+ifeq ($(SYSNAME), Darwin)
+	LIBS += $(foreach lp, $(LIBRARY_PATH), -L"$(lp)")
+#   workaround for clang ignoring LIBRARY_PATH
+endif
 
 FrontEnd: YYParser.o Context.o FrontEnd.o TokenExtractor.o
 	$(CXX) -o $@ $^ $(LIBS)