Clone
Gustaf Neumann <neumann@wu-wien.ac.at>
committed
on 03 Jan 21
added target for clang-tidy, fine-tuning of compile flags
define-incrementals + 6 more
apps/build.tcl (+1 -1)
40 40
41 41   # puts pwd([pwd])=[glob *]
42 42   # puts tclDir($tclDir)=[glob $tclDir/*]
43 43  
44 44   set buildDir [pwd]
45 45  
46 46   cd $tclDir
47 47
48 48   # puts ENV=$::env(PATH)
49 49   # puts ENV=$::env(HOME)
50 50   # exec >@stdout 2>@stderr bash -lc "echo \$PATH"
51 51   # exec >@stdout 2>@stderr bash -lc "cd && pwd"
52 52   # exec >@stdout 2>@stderr bash -lc "cd && ls -la"
53 53
54 54   switch -exact -- $TOOLCHAIN {
55 55     autoconf-tea {
56 56       exec >@stdout 2>@stderr bash -lc "./configure --libdir=$tclDir --enable-64bit"
57 57       exec >@stdout 2>@stderr bash -lc "make"
58 58      
59 59       cd $BUILDDIR
60         exec >@stdout 2>@stderr bash -lc "./configure --prefix=$INSTALLDIR --with-tcl=$tclDir"
  60       exec >@stdout 2>@stderr bash -lc "./configure --prefix=$INSTALLDIR --exec-prefix=$INSTALLDIR --with-tcl=$tclDir"
61 61       exec >@stdout 2>@stderr bash -lc "make test"
62 62       exec >@stdout 2>@stderr bash -lc "make install"
63 63     }
64 64     nmake-tea {
65 65       exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclRoot release
66 66      
67 67       cd [file join $BUILDDIR win]
68 68      
69 69       exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclRoot all
70 70       exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclRoot test
71 71     }
72 72     default {
73 73       throw [list BUILD UNSUPPORTED $TOOLCHAIN] \
74 74           "Unsupported toolchain: '$TOOLCHAIN'."
75 75     }
76 76   }
77 77 }
78 78
79 79 # puts ===$::argv
80 80 ::build {*}$::argv