[OCaml] Add -g on DEBUG_SYMBOLS=1, not ENABLE_OPTIMIZED.
authorPeter Zotov <whitequark@whitequark.org>
Mon, 3 Nov 2014 10:06:19 +0000 (10:06 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Mon, 3 Nov 2014 10:06:19 +0000 (10:06 +0000)
Thanks echristo for pointing this out.

llvm-svn: 221145

llvm/bindings/ocaml/Makefile.ocaml

index 26f82fa..5e00cf5 100644 (file)
@@ -81,7 +81,7 @@ OCAMLAFLAGS += $(patsubst %,-cclib %, \
 endif
 endif
 
-ifneq ($(ENABLE_OPTIMIZED),1)
+ifneq ($(DEBUG_SYMBOLS),1)
   OCAMLDEBUGFLAG := -g
 endif