Fossil SCM
Modified Makefile to support clang in private branch.
Commit
9c06026377defdf2db2fe52c1fddfb62381db5f3
Parent
4c41c80e04dcd3d…
1 file changed
+4
-2
M
Makefile
+4
-2
| --- Makefile | ||
| +++ Makefile | ||
| @@ -14,11 +14,12 @@ | ||
| 14 | 14 | #### C Compiler and options for use in building executables that |
| 15 | 15 | # will run on the platform that is doing the build. This is used |
| 16 | 16 | # to compile code-generator programs as part of the build process. |
| 17 | 17 | # See TCC below for the C compiler for building the finished binary. |
| 18 | 18 | # |
| 19 | -BCC = gcc -g -O2 | |
| 19 | +#BCC = gcc -g -O2 | |
| 20 | +BCC = clang -g -O2 | |
| 20 | 21 | |
| 21 | 22 | #### The suffix to add to executable files. ".exe" for windows. |
| 22 | 23 | # Nothing for unix. |
| 23 | 24 | # |
| 24 | 25 | E = |
| @@ -29,11 +30,12 @@ | ||
| 29 | 30 | # the finished binary for fossil. The BCC compiler above is used |
| 30 | 31 | # for building intermediate code-generator tools. |
| 31 | 32 | # |
| 32 | 33 | #TCC = gcc -O6 |
| 33 | 34 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage |
| 34 | -TCC = gcc -g -Os -Wall | |
| 35 | +#TCC = gcc -g -Os -Wall | |
| 36 | +TCC = clang -g -Os -Wall | |
| 35 | 37 | |
| 36 | 38 | # To add support for HTTPS |
| 37 | 39 | TCC += -DFOSSIL_ENABLE_SSL |
| 38 | 40 | |
| 39 | 41 | #### Extra arguments for linking the finished binary. Fossil needs |
| 40 | 42 |
| --- Makefile | |
| +++ Makefile | |
| @@ -14,11 +14,12 @@ | |
| 14 | #### C Compiler and options for use in building executables that |
| 15 | # will run on the platform that is doing the build. This is used |
| 16 | # to compile code-generator programs as part of the build process. |
| 17 | # See TCC below for the C compiler for building the finished binary. |
| 18 | # |
| 19 | BCC = gcc -g -O2 |
| 20 | |
| 21 | #### The suffix to add to executable files. ".exe" for windows. |
| 22 | # Nothing for unix. |
| 23 | # |
| 24 | E = |
| @@ -29,11 +30,12 @@ | |
| 29 | # the finished binary for fossil. The BCC compiler above is used |
| 30 | # for building intermediate code-generator tools. |
| 31 | # |
| 32 | #TCC = gcc -O6 |
| 33 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage |
| 34 | TCC = gcc -g -Os -Wall |
| 35 | |
| 36 | # To add support for HTTPS |
| 37 | TCC += -DFOSSIL_ENABLE_SSL |
| 38 | |
| 39 | #### Extra arguments for linking the finished binary. Fossil needs |
| 40 |
| --- Makefile | |
| +++ Makefile | |
| @@ -14,11 +14,12 @@ | |
| 14 | #### C Compiler and options for use in building executables that |
| 15 | # will run on the platform that is doing the build. This is used |
| 16 | # to compile code-generator programs as part of the build process. |
| 17 | # See TCC below for the C compiler for building the finished binary. |
| 18 | # |
| 19 | #BCC = gcc -g -O2 |
| 20 | BCC = clang -g -O2 |
| 21 | |
| 22 | #### The suffix to add to executable files. ".exe" for windows. |
| 23 | # Nothing for unix. |
| 24 | # |
| 25 | E = |
| @@ -29,11 +30,12 @@ | |
| 30 | # the finished binary for fossil. The BCC compiler above is used |
| 31 | # for building intermediate code-generator tools. |
| 32 | # |
| 33 | #TCC = gcc -O6 |
| 34 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage |
| 35 | #TCC = gcc -g -Os -Wall |
| 36 | TCC = clang -g -Os -Wall |
| 37 | |
| 38 | # To add support for HTTPS |
| 39 | TCC += -DFOSSIL_ENABLE_SSL |
| 40 | |
| 41 | #### Extra arguments for linking the finished binary. Fossil needs |
| 42 |