Disabling -g for ocaml builds; it's not downwards compatible.
authorGordon Henriksen <gordonhenriksen@mac.com>
Tue, 25 Dec 2007 08:37:43 +0000 (08:37 +0000)
committerGordon Henriksen <gordonhenriksen@mac.com>
Tue, 25 Dec 2007 08:37:43 +0000 (08:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45352 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/ocaml/Makefile.ocaml

index 6008c3a083121a1b232aad13c865bc4ebd26f4e9..9466c2361ab6a2187af8494cbdba5eeabc18ad59 100644 (file)
@@ -42,9 +42,10 @@ OCAMLAFLAGS += $(patsubst %,-cclib %, \
                                           $(shell $(LLVM_CONFIG) --ldflags)) \
                                           $(UsedLibs))
  
-ifneq ($(ENABLE_OPTIMIZED),1)
-  OCAMLDEBUGFLAG := -g
-endif
+# -g was introduced in 3.10.0.
+#ifneq ($(ENABLE_OPTIMIZED),1)
+#  OCAMLDEBUGFLAG := -g
+#endif
 
 Compile.CMI  := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
 Compile.CMO  := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)