aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-02-14 07:25:03 +0100
committerBjörn Gustavsson <[email protected]>2010-02-14 12:23:03 +0100
commit649d313771dc4e53ddfa3ba61504743f38dc8cff (patch)
treee8e44a8477fb45fa02843755cc4bcca0c3e6495d /lib/syntax_tools
parentb366554ee70509836d7550107163e14aed66c83f (diff)
downloadotp-649d313771dc4e53ddfa3ba61504743f38dc8cff.tar.gz
otp-649d313771dc4e53ddfa3ba61504743f38dc8cff.tar.bz2
otp-649d313771dc4e53ddfa3ba61504743f38dc8cff.zip
syntax_tools: Support the --enable-native-libs configure option
While at it, turn on some more warnings.
Diffstat (limited to 'lib/syntax_tools')
-rw-r--r--lib/syntax_tools/src/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/syntax_tools/src/Makefile b/lib/syntax_tools/src/Makefile
index 62a24d98c0..50369e633e 100644
--- a/lib/syntax_tools/src/Makefile
+++ b/lib/syntax_tools/src/Makefile
@@ -23,7 +23,10 @@ RELSYSDIR = $(RELEASE_PATH)/lib/syntax_tools-$(VSN)
EBIN = ../ebin
-ERL_COMPILE_FLAGS += +warn_unused_vars +nowarn_shadow_vars +warn_unused_import +warn_obsolete_guard
+ifeq ($(NATIVE_LIBS_ENABLED),yes)
+ERL_COMPILE_FLAGS += +native
+endif
+ERL_COMPILE_FLAGS += +warn_unused_vars +nowarn_shadow_vars +warn_unused_import +warn_missing_spec +warn_untyped_record
SOURCES=erl_syntax.erl erl_prettypr.erl erl_syntax_lib.erl \
erl_comment_scan.erl erl_recomment.erl erl_tidy.erl \