Add -C gcc compatible option which does currently nothing. This allows, among others, to compile gnumake from git ROOTB.
This commit is contained in:
		
							parent
							
								
									28e9fc1913
								
							
						
					
					
						commit
						b5af2d3428
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								libtcc.c
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								libtcc.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1622,7 +1622,8 @@ enum {
 | 
			
		|||
    TCC_OPTION_MF,
 | 
			
		||||
    TCC_OPTION_x,
 | 
			
		||||
    TCC_OPTION_ar,
 | 
			
		||||
    TCC_OPTION_impdef
 | 
			
		||||
    TCC_OPTION_impdef,
 | 
			
		||||
    TCC_OPTION_C
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#define TCC_OPTION_HAS_ARG 0x0001
 | 
			
		||||
| 
						 | 
				
			
			@ -1690,6 +1691,7 @@ static const TCCOption tcc_options[] = {
 | 
			
		|||
#ifdef TCC_TARGET_PE
 | 
			
		||||
    { "impdef", TCC_OPTION_impdef, 0},
 | 
			
		||||
#endif
 | 
			
		||||
    { "C", TCC_OPTION_C, 0},
 | 
			
		||||
    { NULL, 0, 0 },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -2065,6 +2067,7 @@ reparse:
 | 
			
		|||
        case TCC_OPTION_pedantic:
 | 
			
		||||
        case TCC_OPTION_pipe:
 | 
			
		||||
        case TCC_OPTION_s:
 | 
			
		||||
        case TCC_OPTION_C:
 | 
			
		||||
            /* ignored */
 | 
			
		||||
            break;
 | 
			
		||||
        default:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								tcc.c
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								tcc.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -48,6 +48,7 @@ static const char help[] =
 | 
			
		|||
    "  -Dsym[=val]  define 'sym' with value 'val'\n"
 | 
			
		||||
    "  -Usym        undefine 'sym'\n"
 | 
			
		||||
    "  -E           preprocess only\n"
 | 
			
		||||
    "  -C           keep comments (not yet implemented)\n"
 | 
			
		||||
    "Linker options:\n"
 | 
			
		||||
    "  -Ldir        add library path 'dir'\n"
 | 
			
		||||
    "  -llib        link with dynamic or static library 'lib'\n"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue