createconfig: rtl.js from compiler sources and -Sc

This commit is contained in:
mattias 2024-01-16 11:38:50 +01:00
parent 31dbc59ee4
commit 1d6efcfb58

View File

@ -56,8 +56,11 @@ begin
Addln('# If you don''t want so much verbosity use');
Addln('#-vw');
Addln('');
Addln('# Allow C-operators');
Addln('-Sc');
Addln('');
Addln('#ifdef FPC_SUBTARGET_NAMESPACES');
Addln('-Fu$CfgDir/'+BASEDIR+'/*/namespaced');
Addln('-Fu$CfgDir/'+BASEDIR+'/packages/*/namespaced');
Addln('-Fi$CfgDir/'+BASEDIR+'/packages/*/src');
Addln('# For compatibility with FPC:');
Addln('-dUnicodeRTL');
@ -65,6 +68,9 @@ begin
Addln('-Fu$CfgDir/'+BASEDIR+'/packages/*/src');
Addln('#endif');
Addln('');
Addln('# use rtl.js from compiler sources if available');
Addln('-Fu$CfgDir/'+BASEDIR+'/compiler/utils/pas2js/dist');
Addln('');
Addln('#IFDEF nodejs');
Addln('-Jirtl.js');
Addln('#ENDIF');