Patch PA4 for missing yylex
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
libfl is missing yylex symbol. Since libfl is not necessary for the semantic analyzer, just remove `-lfl` from the Makefile.
This commit is contained in:
parent
032f8a5714
commit
d4a9420bc7
2 changed files with 13 additions and 1 deletions
|
@ -85,7 +85,8 @@ RUN sed -i 's/-zx/-ozx/g' \
|
||||||
# c) fix mangling errors of yylex when compiled with a c++ compiler
|
# c) fix mangling errors of yylex when compiled with a c++ compiler
|
||||||
# d) be as non-invasive as possible to the existing assignment code
|
# d) be as non-invasive as possible to the existing assignment code
|
||||||
RUN patch -u /usr/class/assignments/PA2/cool.flex -i /tmp/build/cool.flex.patch \
|
RUN patch -u /usr/class/assignments/PA2/cool.flex -i /tmp/build/cool.flex.patch \
|
||||||
&& patch -u /usr/class/assignments/PA3/cool.y -i /tmp/build/cool.y.patch
|
&& patch -u /usr/class/assignments/PA3/cool.y -i /tmp/build/cool.y.patch \
|
||||||
|
&& patch -u /usr/class/assignments/PA4/Makefile -i /tmp/build/Makefile.patch
|
||||||
|
|
||||||
# Setup working directory
|
# Setup working directory
|
||||||
RUN mkdir -p /class
|
RUN mkdir -p /class
|
||||||
|
|
11
Makefile.patch
Normal file
11
Makefile.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Makefile 2021-01-03 12:11:07.454989428 +0000
|
||||||
|
+++ Makefile.work 2021-01-03 12:15:19.965132466 +0000
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
ASSN = 4
|
||||||
|
CLASS= cs143
|
||||||
|
CLASSDIR= ../..
|
||||||
|
-LIB= -L/usr/pubsw/lib -lfl
|
||||||
|
+LIB= -L/usr/pubsw/lib
|
||||||
|
AR= gar
|
||||||
|
ARCHIVE_NEW= -cr
|
||||||
|
RANLIB= gar -qs
|
Loading…
Reference in a new issue