瀏覽代碼

Build tcc from source

Stefan Profanter 6 年之前
父節點
當前提交
24176ffff4
共有 2 個文件被更改,包括 12 次插入1 次删除
  1. 0 1
      .travis.yml
  2. 12 0
      tools/travis/travis_linux_before_install.sh

+ 0 - 1
.travis.yml

@@ -78,7 +78,6 @@ addons:
       - mingw-w64
       - python-six
       - python3-six
-      - tcc
       - texlive-fonts-recommended
       - texlive-latex-extra
       - texlive-latex-recommended

+ 12 - 0
tools/travis/travis_linux_before_install.sh

@@ -18,6 +18,18 @@ if [ -z ${DOCKER+x} ]; then
 		sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-3.9 clang-tidy-3.9 libfuzzer-3.9-dev
 	fi
 
+	if [ "$CC" = "tcc" ]; then
+		mkdir tcc_install && cd tcc_install
+		wget https://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27.tar.bz2
+		tar xvf tcc-0.9.27.tar.bz2
+		cd tcc-0.9.27
+		./configure
+		make
+		sudo make install
+		cd ../..
+		rm -rf tcc_install
+	fi
+
 	sudo add-apt-repository -y ppa:lttng/ppa
 	sudo apt-get update -qq
 	sudo apt-get install -y liburcu4 liburcu-dev