From c3c199cf67ead34a3a387489abf9b79fc64afc37 Mon Sep 17 00:00:00 2001 From: nickysn Date: Sun, 24 Jan 2021 02:25:00 +0000 Subject: [PATCH] * show the list of wasm32 targets in the compiler help screen git-svn-id: branches/wasm@48375 - --- compiler/msg/errore.msg | 3 + compiler/msgidx.inc | 2 +- compiler/msgtxt.inc | 141 +++++++++++++++++++++------------------- compiler/options.pas | 3 + 4 files changed, 80 insertions(+), 69 deletions(-) diff --git a/compiler/msg/errore.msg b/compiler/msg/errore.msg index 3631c1ac45..58b8637c38 100644 --- a/compiler/msg/errore.msg +++ b/compiler/msg/errore.msg @@ -4226,6 +4226,9 @@ x*2Tlinux_Linux Z*2Tembedded_Embedded Z*2Tzxspectrum_ZX Spectrum Z*2Tmsxdos_MSX-DOS +# wasm32 targets +W*2Tembedded_Embedded +W*2Twasi_The WebAssembly System Interface (WASI) # end of targets section **1u_Undefines the symbol **1U_Unit options: diff --git a/compiler/msgidx.inc b/compiler/msgidx.inc index 2ceaf408e9..7f923b2fb5 100644 --- a/compiler/msgidx.inc +++ b/compiler/msgidx.inc @@ -1136,7 +1136,7 @@ const option_info=11024; option_help_pages=11025; - MsgTxtSize = 86927; + MsgTxtSize = 86998; MsgIdxMax : array[1..20] of longint=( 28,107,361,130,99,63,145,36,223,68, diff --git a/compiler/msgtxt.inc b/compiler/msgtxt.inc index 80be8dc4c4..91516551ec 100644 --- a/compiler/msgtxt.inc +++ b/compiler/msgtxt.inc @@ -1854,156 +1854,161 @@ const msgtxt : array[0..000362,1..240] of char=( 'Z*2Tembedded_Embedded'#010+ 'Z*2Tzxspectrum_ZX Spectrum'#010+ 'Z*2Tmsxdos_','MSX-DOS'#010+ + 'W*2Tembedded_Embedded'#010+ + 'W*2Twasi_The WebAssembly System Interface (WASI)'#010+ '**1u_Undefines the symbol '#010+ '**1U_Unit options:'#010+ '**2Un_Do not check where the unit name matches the file name'#010+ - '**2Ur_Generate release unit files (never automatically recompiled)'#010+ + '**2Ur_Generate release unit files (never automat','ically recompiled)'#010+ '**2Us_Compile a system unit'#010+ - '**1v_Be verbose. ','is a combination of the following letters:'#010+ + '**1v_Be verbose. is a combination of the following letters:'#010+ '**2*_e : Show errors (default) 0 : Show nothing (except errors)'#010+ - '**2*_w : Show warnings u : Show unit info'#010+ + '**2*_w : Show warnings u : Show unit info'#010, '**2*_n : Show notes t : Show tried/used files'#010+ - '**2*_h :',' Show hints c : Show conditionals'#010+ + '**2*_h : Show hints c : Show conditionals'#010+ '**2*_i : Show general info d : Show debug info'#010+ - '**2*_l : Show linenumbers r : Rhide/GCC compatibility mode'#010+ - '**2*_s : Show time stamps q : Show message numbers'#010, + '**2*_l : Show linenumbers r : Rhide/GCC compatibil','ity mod'+ + 'e'#010+ + '**2*_s : Show time stamps q : Show message numbers'#010+ '**2*_a : Show everything x : Show info about invoked tools'+ #010+ '**2*_b : Write file names messages p : Write tree.log with parse tre'+ 'e'#010+ - '**2*_ with full path v : Write fpcdebug.txt with'#010+ - '**2*_z : Write output to stderr ',' lots of debugging info'#010+ + '**2*_ with full path ',' v : Write fpcdebug.txt with'#010+ + '**2*_z : Write output to stderr lots of debugging info'#010+ '**2*_m, : Do not show messages numbered and '#010+ 'F*1V_Append '#039'-'#039' to the used compiler binary name (e.g. f'+ 'or version)'#010+ - '**1W_Target-specific options (targets)'#010+ - '3*2WA_Specify native type applicat','ion (Windows)'#010+ + '**1W<','x>_Target-specific options (targets)'#010+ + '3*2WA_Specify native type application (Windows)'#010+ '4*2WA_Specify native type application (Windows)'#010+ 'A*2WA_Specify native type application (Windows)'#010+ '3*2Wb_Create a bundle instead of a library (Darwin)'#010+ - 'P*2Wb_Create a bundle instead of a library (Darwin)'#010+ - 'p*2Wb_Create a bundle inst','ead of a library (Darwin)'#010+ + 'P*2Wb_C','reate a bundle instead of a library (Darwin)'#010+ + 'p*2Wb_Create a bundle instead of a library (Darwin)'#010+ 'a*2Wb_Create a bundle instead of a library (Darwin)'#010+ 'A*2Wb_Create a bundle instead of a library (Darwin)'#010+ - '4*2Wb_Create a bundle instead of a library (Darwin)'#010+ + '4*2Wb_Create a bundle instead of a libr','ary (Darwin)'#010+ '3*2WB_Create a relocatable image (Windows, Symbian)'#010+ - '3*2WB<','x>_Set image base to (Windows, Symbian)'#010+ + '3*2WB_Set image base to (Windows, Symbian)'#010+ '4*2WB_Create a relocatable image (Windows)'#010+ '4*2WB_Set image base to (Windows)'#010+ - 'A*2WB_Create a relocatable image (Windows, Symbian)'#010+ + 'A*2WB_Create a relocatable image (Windows',', Symbian)'#010+ 'A*2WB_Set image base to (Windows, Symbian)'#010+ - 'Z*2WB_S','et image base to (ZX Spectrum)'#010+ + 'Z*2WB_Set image base to (ZX Spectrum)'#010+ '3*2WC_Specify console type application (EMX, OS/2, Windows)'#010+ '4*2WC_Specify console type application (Windows)'#010+ - 'A*2WC_Specify console type application (Windows)'#010+ - 'P*2WC_Specify console type application (Classic',' Mac OS)'#010+ + 'A*2WC_Specify console typ','e application (Windows)'#010+ + 'P*2WC_Specify console type application (Classic Mac OS)'#010+ '3*2WD_Use DEFFILE to export functions of DLL or EXE (Windows)'#010+ '4*2WD_Use DEFFILE to export functions of DLL or EXE (Windows)'#010+ - 'A*2WD_Use DEFFILE to export functions of DLL or EXE (Windows)'#010+ + 'A*2WD_Use DEFFILE to export function','s of DLL or EXE (Windows)'#010+ '3*2We_Use external resources (Darwin)'#010+ - '4*2We_U','se external resources (Darwin)'#010+ + '4*2We_Use external resources (Darwin)'#010+ 'a*2We_Use external resources (Darwin)'#010+ 'A*2We_Use external resources (Darwin)'#010+ 'P*2We_Use external resources (Darwin)'#010+ - 'p*2We_Use external resources (Darwin)'#010+ + 'p*2We_Use external resou','rces (Darwin)'#010+ '3*2WF_Specify full-screen type application (EMX, OS/2)'#010+ - '3*','2WG_Specify graphic type application (EMX, OS/2, Windows)'#010+ + '3*2WG_Specify graphic type application (EMX, OS/2, Windows)'#010+ '4*2WG_Specify graphic type application (Windows)'#010+ 'A*2WG_Specify graphic type application (Windows)'#010+ - 'P*2WG_Specify graphic type application (Classic Mac OS)'#010+ - '3*2Wi_Use internal resources',' (Darwin)'#010+ + 'P*2WG_Specify',' graphic type application (Classic Mac OS)'#010+ + '3*2Wi_Use internal resources (Darwin)'#010+ '4*2Wi_Use internal resources (Darwin)'#010+ 'a*2Wi_Use internal resources (Darwin)'#010+ 'A*2Wi_Use internal resources (Darwin)'#010+ 'P*2Wi_Use internal resources (Darwin)'#010+ - 'p*2Wi_Use internal resources (Darwin)'#010+ - '3*2WI_Turn on/off the usage of import se','ctions (Windows)'#010+ + 'p*2Wi_U','se internal resources (Darwin)'#010+ + '3*2WI_Turn on/off the usage of import sections (Windows)'#010+ '4*2WI_Turn on/off the usage of import sections (Windows)'#010+ 'A*2WI_Turn on/off the usage of import sections (Windows)'#010+ - '8*2Wh_Use huge code for units (ignored for models with CODE in a uniqu'+ - 'e segment)'#010+ + '8*2Wh_Use huge code for units (ignored',' for models with CODE in a uni'+ + 'que segment)'#010+ '8*2Wm_Set memory model'#010+ - '8*','3WmTiny_Tiny memory model'#010+ + '8*3WmTiny_Tiny memory model'#010+ '8*3WmSmall_Small memory model (default)'#010+ '8*3WmMedium_Medium memory model'#010+ '8*3WmCompact_Compact memory model'#010+ '8*3WmLarge_Large memory model'#010+ - '8*3WmHuge_Huge memory model'#010+ - '3*2WM_Minimum Mac OS X deployment version: 10.4',', 10.5.1, ... (Dar'+ - 'win)'#010+ + '8*3WmHu','ge_Huge memory model'#010+ + '3*2WM_Minimum Mac OS X deployment version: 10.4, 10.5.1, ... (Darwi'+ + 'n)'#010+ '4*2WM_Minimum Mac OS X deployment version: 10.4, 10.5.1, ... (Darwi'+ 'n)'#010+ 'p*2WM_Minimum Mac OS X deployment version: 10.4, 10.5.1, ... (Darwi'+ - 'n)'#010+ + 'n)'#010, 'P*2WM_Minimum Mac OS X deployment version: 10.4, 10.5.1, ... (Darwi'+ - 'n',')'#010+ + 'n)'#010+ '3*2WN_Do not generate relocation code, needed for debugging (Windows)'#010+ '4*2WN_Do not generate relocation code, needed for debugging (Windows)'#010+ - 'A*2WN_Do not generate relocation code, needed for debugging (Windows)'#010+ - 'A*2Wp_Specify the control','ler type; see fpc -i or fpc -iu for poss'+ - 'ible values'#010+ + 'A*2WN_Do not generate reloc','ation code, needed for debugging (Windows'+ + ')'#010+ + 'A*2Wp_Specify the controller type; see fpc -i or fpc -iu for possib'+ + 'le values'#010+ 'm*2Wp_Specify the controller type; see fpc -i or fpc -iu for possib'+ 'le values'#010+ - 'R*2Wp_Specify the controller type; see fpc -i or fpc -iu for possib'+ - 'le values'#010+ - 'V*2Wp_Specify the control','ler type; see fpc -i or fpc -iu for poss'+ + 'R*2Wp_Specify the controller type;',' see fpc -i or fpc -iu for poss'+ 'ible values'#010+ + 'V*2Wp_Specify the controller type; see fpc -i or fpc -iu for possib'+ + 'le values'#010+ 'x*2Wp_Specify the controller type; see fpc -i or fpc -iu for possib'+ 'le values'#010+ - '3*2WP_Minimum iOS deployment version: 3.0, 5.0.1, ... (iphonesim)'#010+ - '4*2WP_Minimum iOS deployment version',': 8.0, 8.0.2, ... (iphonesim)'+ + '3*2WP_Minimum iOS deployment versi','on: 3.0, 5.0.1, ... (iphonesim)'+ #010+ + '4*2WP_Minimum iOS deployment version: 8.0, 8.0.2, ... (iphonesim)'#010+ 'a*2WP_Minimum iOS deployment version: 7.0, 7.1.2, ... (Darwin)'#010+ 'A*2WP_Minimum iOS deployment version: 3.0, 5.0.1, ... (Darwin)'#010+ - '3*2WR_Generate relocation code (Windows)'#010+ - '4*2WR_Generate relocation code (Windo','ws)'#010+ + '3*2WR_G','enerate relocation code (Windows)'#010+ + '4*2WR_Generate relocation code (Windows)'#010+ 'A*2WR_Generate relocation code (Windows)'#010+ '8*2Wt_Set the target executable format'#010+ '8*3Wtexe_Create a DOS .EXE file (default)'#010+ - '8*3Wtcom_Create a DOS .COM file (requires tiny memory model)'#010+ - 'P*2WT_Specify MPW tool type application (Classic M','ac OS)'#010+ + '8*3Wtcom_Create a DOS .COM file (require','s tiny memory model)'#010+ + 'P*2WT_Specify MPW tool type application (Classic Mac OS)'#010+ '6*2WQ_Set executable metadata format (Sinclair QL)'#010+ '6*3WQqhdr_Set metadata to QDOS File Header style (default)'#010+ '6*3WQxtcc_Set metadata to XTcc style'#010+ - '**2WX_Enable executable stack (Linux)'#010+ + '**2WX_Enable',' executable stack (Linux)'#010+ '**1X_Executable options:'#010+ - '**2X9_Generate linke','rscript for GNU Binutils ld older than version 2'+ - '.19.1 (Linux)'#010+ + '**2X9_Generate linkerscript for GNU Binutils ld older than version 2.1'+ + '9.1 (Linux)'#010+ '**2Xa_Generate code which allows to use more than 2 GB static data on '+ '64 Bit targets (Linux)'#010+ - '**2Xc_Pass --shared/-dynamic to the linker (BeOS, Darwin, FreeBSD, Lin'+ - 'ux)'#010+ - '**2Xd_Do no','t search default library path (sometimes required for cro'+ - 'ss-compiling when not using -XR)'#010+ + '**2Xc_Pass --s','hared/-dynamic to the linker (BeOS, Darwin, FreeBSD, L'+ + 'inux)'#010+ + '**2Xd_Do not search default library path (sometimes required for cross'+ + '-compiling when not using -XR)'#010+ '**2Xe_Use external linker'#010+ - '**2Xf_Substitute pthread library name for linking (BSD)'#010+ - '**2Xg_Create debuginfo in a separate file and add a debuglink sectio','n'+ - ' to executable'#010+ + '**2Xf_Substitute pthread library name for linking (BS','D)'#010+ + '**2Xg_Create debuginfo in a separate file and add a debuglink section '+ + 'to executable'#010+ '**2XD_Try to link units dynamically (defines FPC_LINK_DYNAMIC)'#010+ '**2Xi_Use internal linker'#010+ - 'L*2XlS_LLVM utilties suffix (e.g. -7 in case clang is called clang-'+ - '7)'#010+ + 'L*2XlS_LLVM utilties suffix (e.g. -7 in case clang is ca','lled clan'+ + 'g-7)'#010+ '**2XLA_Define library substitutions for linking'#010+ - '**2XLO_De','fine order of library linking'#010+ + '**2XLO_Define order of library linking'#010+ '**2XLD_Exclude default order of standard libraries'#010+ '**2Xm_Generate link map'#010+ '**2XM_Set the name of the '#039'main'#039' program routine (default i'+ - 's '#039'main'#039')'#010+ - '**2Xn_Use target system native linker instead of GNU ld (Solari','s, AI'+ - 'X)'#010+ + 's ',#039'main'#039')'#010+ + '**2Xn_Use target system native linker instead of GNU ld (Solaris, AIX)'+ + #010+ 'F*2Xp_First search for the compiler binary in the directory '#010+ '**2XP_Prepend the binutils names with the prefix '#010+ - '**2Xr_Set the linker'#039's rlink-path to (needed for cross comp'+ - 'ile, see the ld manual for more information',') (BeOS, Linux)'#010+ + '**2Xr_Set the linker'#039's rlink-path t','o (needed for cross co'+ + 'mpile, see the ld manual for more information) (BeOS, Linux)'#010+ '**2XR_Prepend to all linker search paths (BeOS, Darwin, FreeBSD'+ ', Linux, Mac OS, Solaris)'#010+ '**2Xs_Strip all symbols from executable'#010+ - '**2XS_Try to link units statically (default, defines FPC_LINK_STATIC)'#010+ - '**2Xt_Link with st','atic libraries (-static is passed to linker)'#010+ + '**2XS_Try to link',' units statically (default, defines FPC_LINK_STATIC'+ + ')'#010+ + '**2Xt_Link with static libraries (-static is passed to linker)'#010+ '**2Xv_Generate table for Virtual Entry calls'#010+ '**2XV_Use VLink as external linker (default on Amiga, MorphOS)'#010+ - '**2XX_Try to smartlink units (defines FPC_LINK_SMART)'#010+ + '**2XX_Try ','to smartlink units (defines FPC_LINK_SMART)'#010+ '**1*_'#010+ - '**1?_Show',' this help'#010+ + '**1?_Show this help'#010+ '**1h_Shows this help without waiting' ); diff --git a/compiler/options.pas b/compiler/options.pas index d10329b0f4..59131edce0 100644 --- a/compiler/options.pas +++ b/compiler/options.pas @@ -763,6 +763,9 @@ begin {$endif} {$ifdef z80} 'Z', +{$endif} +{$ifdef wasm32} + 'W', {$endif} '*' : show:=true; end;