summary refs log tree commit diff stats
path: root/compiler/nim.cfg
blob: 853a657b391e5ee8976d819fbe0838ebe1fbcdb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Special configuration file for the Nim project

hint[XDeclaredButNotUsed]:off

define:booting
define:nimcore
define:nimPreviewFloatRoundtrip
define:nimPreviewSlimSystem

#import:"$projectpath/testability"

@if windows:
  cincludes: "$lib/wrappers/libffi/common"
  tlsEmulation:off
@end

define:useStdoutAsStdmsg

@if nimHasStyleChecks:
  styleCheck:error
@end


#define:useNodeIds
#gc:markAndSweep

@if nimHasWarningObservableStores:
  warning[ObservableStores]: off
@end

@if nimHasEffectsOf:
  experimental:strictEffects
  warningAsError:Effect:on
@end
n> $1.html sed -i 's/^\.LineNr .*/.LineNr { color: #444444; }/' $1.html # line numbers # make links less salient since we may have a lot of cross-links sed -i '/^body {/ a a:hover { text-decoration: underline; }' $1.html sed -i '/^body {/ a a { text-decoration: none; }' $1.html # tweak contrast sed -i 's/^\.Constant .*/.Constant { color: #00a0a0; }/' $1.html sed -i 's/^\.muControl .*/.muControl { color: #c0a020; }/' $1.html sed -i 's/^\.Comment .*/.Comment { color: #9090ff; }/' $1.html sed -i 's/^\.Delimiter .*/.Delimiter { color: #800080; }/' $1.html # not meant to be read; can be lower-contrast sed -i 's/^\.PreProc .*/.PreProc { color: #800080; }/' $1.html # not meant to be read; can be lower-contrast sed -i 's/^\.Identifier .*/.Identifier { color: #c0a020; }/' $1.html # same as muControl sed -i 's/^\.Special .*/.Special { color: #c00000; }/' $1.html # same as traceAbsent.. # switch unicode characters around in the rendered html # the ones we have in the source files render double-wide in html # the ones we want in the html cause iTerm2 to slow down in alt-tabbing for some reason # the following commands give us the best of both worlds sed -i -e 's/┈/╌/g' -e 's/┊/╎/g' $1.html mv -i $1.html html/`dirname $1` } if [ $# -gt 0 ] then for f in $* do process $f done exit 0 fi rm html/*.html html/edit/*.html for f in *.cc *.mu edit/*.mu do process $f done if which ctags >&/dev/null then ( cd linkify; build; ) ctags -x *.cc |grep -v "^operator \| member \| variable " > cpp.tags linkify/linkify cpp.tags html/*.cc.html ctags -x 0*.mu > mu.tags linkify/linkify mu.tags html/*.mu.html ( cd edit ctags -x *.mu ../0*.mu > mu.tags ../linkify/linkify mu.tags ../html/edit/*.mu.html rm mu.tags ) rm *.tags ( cd linkify; clean; ) for f in html/*.html html/edit/*.html do mv $f.out $f done fi