configure support
This commit is contained in:
parent
d579dc4dbf
commit
5647993e79
1 changed files with 6 additions and 6 deletions
12
tcc.c
12
tcc.c
|
|
@ -18,6 +18,8 @@
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
@ -71,10 +73,6 @@
|
||||||
/* define it to include assembler support */
|
/* define it to include assembler support */
|
||||||
#define CONFIG_TCC_ASM
|
#define CONFIG_TCC_ASM
|
||||||
|
|
||||||
#ifndef CONFIG_TCC_PREFIX
|
|
||||||
#define CONFIG_TCC_PREFIX "/usr/local"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* path to find crt1.o, crti.o and crtn.o. Only needed when generating
|
/* path to find crt1.o, crti.o and crtn.o. Only needed when generating
|
||||||
executables or dlls */
|
executables or dlls */
|
||||||
#define CONFIG_TCC_CRT_PREFIX "/usr/lib"
|
#define CONFIG_TCC_CRT_PREFIX "/usr/lib"
|
||||||
|
|
@ -332,7 +330,9 @@ static int do_debug = 0;
|
||||||
static int do_bounds_check = 0;
|
static int do_bounds_check = 0;
|
||||||
|
|
||||||
/* display benchmark infos */
|
/* display benchmark infos */
|
||||||
|
#if !defined(LIBTCC)
|
||||||
static int do_bench = 0;
|
static int do_bench = 0;
|
||||||
|
#endif
|
||||||
static int total_lines;
|
static int total_lines;
|
||||||
static int total_bytes;
|
static int total_bytes;
|
||||||
|
|
||||||
|
|
@ -350,7 +350,7 @@ static const char **rt_bound_error_msg;
|
||||||
static struct TCCState *tcc_state;
|
static struct TCCState *tcc_state;
|
||||||
|
|
||||||
/* give the path of the tcc libraries */
|
/* give the path of the tcc libraries */
|
||||||
static const char *tcc_lib_path = CONFIG_TCC_PREFIX "/lib/tcc";
|
static const char *tcc_lib_path = CONFIG_TCC_LIBDIR "/tcc";
|
||||||
|
|
||||||
struct TCCState {
|
struct TCCState {
|
||||||
int output_type;
|
int output_type;
|
||||||
|
|
@ -9379,7 +9379,7 @@ static int64_t getclock_us(void)
|
||||||
|
|
||||||
void help(void)
|
void help(void)
|
||||||
{
|
{
|
||||||
printf("tcc version 0.9.16 - Tiny C Compiler - Copyright (C) 2001, 2002 Fabrice Bellard\n"
|
printf("tcc version " TCC_VERSION " - Tiny C Compiler - Copyright (C) 2001, 2002 Fabrice Bellard\n"
|
||||||
"usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]\n"
|
"usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]\n"
|
||||||
" [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]\n"
|
" [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]\n"
|
||||||
" [--] infile1 [infile2... --] [infile_args...]\n"
|
" [--] infile1 [infile2... --] [infile_args...]\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue