Skip to content

Commit

Permalink
libhaclml.cmxa: pass -thread to ocamlopt
Browse files Browse the repository at this point in the history
This avoids a warning:

    ocamlfind: [WARNING] Package `threads': Linking problems may arise because of the missing -thread or -vmthread switch
  • Loading branch information
mtzguido committed Jan 4, 2025
1 parent 2d3d7e6 commit 7099a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ obj/libhaclml.cmxa: $(filter-out $(HACL_HOME)/obj/Meta_Interface.cmx,$(ALL_CMX_F
# JP: doesn't work because a PPX is prepended for some reason
# ocamlfind mklib -o haclml -package fstar.lib -g -I $(HACL_HOME)/obj $(addprefix $(HACL_HOME)/obj/*.,cmo cmx ml o)
$(call run-with-log,\
OCAMLFIND_IGNORE_DUPS_IN="`ocamlc -where`/compiler-libs" ocamlfind opt -a -o $@ -package fstar.lib -g -I $(HACL_HOME)/obj $^ \
OCAMLFIND_IGNORE_DUPS_IN="`ocamlc -where`/compiler-libs" ocamlfind opt -thread -a -o $@ -package fstar.lib -g -I $(HACL_HOME)/obj $^ \
,[OCAMLOPT-CMXA] libhaclml,$(call to-obj-dir,$@))


Expand Down

0 comments on commit 7099a18

Please sign in to comment.