Skip to content

Commit

Permalink
fix C compilation of CBOR with proper SteelC include
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed Aug 22, 2023
1 parent 2934fe5 commit da533d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cbor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ verify-all: $(ALL_CHECKED_FILES)
KRML = $(KRML_HOME)/krml \
-ccopt "-Ofast" \
-drop 'FStar.Tactics.\*' -drop FStar.Tactics -drop 'FStar.Reflection.\*' \
-I $(STEEL_HOME)/include/steel -add-include '"steel_c.h"' \
-tmpdir out \
-bundle 'CBOR.SteelC+CBOR.SteelST+CBOR.Spec.Constants=CBOR.\*,Steel.\*,C,LowStar.\*,LowParse.\*[rename=CBOR]' \
-skip-linking \
Expand All @@ -77,7 +78,7 @@ extract: $(ALL_KRML_FILES)
$(KRML) $(ALL_KRML_FILES)

test: extract
$(CC) -Wall -I $(KRML_HOME)/include -I $(KRML_HOME)/krmllib/dist/generic -I out -c cbor_unverified.c
$(CC) -Wall -I $(KRML_HOME)/include -I $(KRML_HOME)/krmllib/dist/generic -I $(STEEL_HOME)/include/steel -I out -c cbor_unverified.c

.PHONY: all verify-all clean %.fst-in %.fsti-in lowparse extract test

Expand Down

0 comments on commit da533d9

Please sign in to comment.