tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] New configure arguments?


From: Barath Aron
Subject: [Tinycc-devel] New configure arguments?
Date: Tue, 16 May 2017 09:08:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1

Hi,

It is okay to add a few extra configure arguments [1]?
I'm working on an OS that does not support a few features (yet). Such as: long double, stuff needed for "tcc -run" and stuff needed for bound check. So, my solution is to disable them during the configuration. I have a patch for that, but I don't want to commit it until I know it is okay or not.

Regards,
Áron



[1]:

--- a/configure
+++ b/configure
@@ -144,6 +144,12 @@ for opt do
   ;;
   --config-*) confvars="$confvars ${opt#--config-}"; suggest="no"
   ;;
+  --no-long-double) no_long_double="yes"
+  ;;
+  --disable-run) disable_run="yes"
+  ;;
+  --disable-bcheck) disable_bcheck="yes"
+  ;;
   --help|-h) show_help="yes"
   ;;
   *) echo "configure: WARNING: unrecognized option $opt"
@@ -510,6 +516,16 @@ if test $? -ne 0 ; then
 else
     echo "config.h is unchanged"
 fi
+if test "$no_long_double" = "yes" ; then
+  echo "#define CONFIG_NO_LONG_DOUBLE 1" >> $TMPH
+fi
+if test "$disable_run" = "yes" ; then
+  echo "#define CONFIG_DISABLE_RUN 1" >> $TMPH
+fi
+if test "$disable_bcheck" = "yes" ; then
+  echo "#define CONFIG_DISABLE_BCHECK" >> $TMPH
+  echo "CONFIG_DISABLE_BCHECK=yes" >> config.mak
+fi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]