History

configure support

bellard committed 23 years ago

Commit 56479931 parent d579dc41 file · +6 −6Browse files

Unified · Split

tcc.c+6−6
@@ -18,6 +18,8 @@ · 17 unmodified lines
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */19 */
20#define _GNU_SOURCE20#define _GNU_SOURCE
21#include "config.h"
22
21#include <stdlib.h>23#include <stdlib.h>
22#include <stdio.h>24#include <stdio.h>
23#include <stdarg.h>25#include <stdarg.h>
@@ -71,10 +73,6 @@ · 47 unmodified lines
71/* define it to include assembler support */73/* define it to include assembler support */
72#define CONFIG_TCC_ASM74#define CONFIG_TCC_ASM
73 75
74#ifndef CONFIG_TCC_PREFIX
75#define CONFIG_TCC_PREFIX "/usr/local"
76#endif
77
78/* path to find crt1.o, crti.o and crtn.o. Only needed when generating76/* path to find crt1.o, crti.o and crtn.o. Only needed when generating
79 executables or dlls */77 executables or dlls */
80#define CONFIG_TCC_CRT_PREFIX "/usr/lib"78#define CONFIG_TCC_CRT_PREFIX "/usr/lib"
@@ -332,7 +330,9 @@ static int do_debug = 0; · 251 unmodified lines
332static int do_bounds_check = 0;330static int do_bounds_check = 0;
333 331
334/* display benchmark infos */332/* display benchmark infos */
333#if !defined(LIBTCC)
335static int do_bench = 0;334static int do_bench = 0;
335#endif
336static int total_lines;336static int total_lines;
337static int total_bytes;337static int total_bytes;
338 338
@@ -350,7 +350,7 @@ static const char **rt_bound_error_msg; · 11 unmodified lines
350static struct TCCState *tcc_state;350static struct TCCState *tcc_state;
351 351
352/* give the path of the tcc libraries */352/* give the path of the tcc libraries */
353static const char *tcc_lib_path = CONFIG_TCC_PREFIX "/lib/tcc";353static const char *tcc_lib_path = CONFIG_TCC_LIBDIR "/tcc";
354 354
355struct TCCState {355struct TCCState {
356 int output_type;356 int output_type;
@@ -9379,7 +9379,7 @@ static int64_t getclock_us(void) · 9022 unmodified lines
9379 9379
9380void help(void)9380void help(void)
9381{9381{
9382 printf("tcc version 0.9.16 - Tiny C Compiler - Copyright (C) 2001, 2002 Fabrice Bellard\n" 9382 printf("tcc version " TCC_VERSION " - Tiny C Compiler - Copyright (C) 2001, 2002 Fabrice Bellard\n"
9383 "usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]\n"9383 "usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]\n"
9384 " [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]\n"9384 " [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]\n"
9385 " [--] infile1 [infile2... --] [infile_args...]\n"9385 " [--] infile1 [infile2... --] [infile_args...]\n"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t