Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0acfef9

Browse files
committed
more
1 parent d60c69e commit 0acfef9

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
language: dart
1+
language: cpp
22
sudo: required
33
before_install:
44
- ./travis/before_install.sh

sky/tools/gn

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def to_gn_args(args):
2929
gn_args = {}
3030

3131
gn_args["is_debug"] = args.debug
32-
gn_args["is_clang"] = args.target_os not in ['android']
32+
gn_args["is_clang"] = args.clang and args.target_os not in ['android']
3333

3434
if args.target_os == 'android':
3535
gn_args["target_os"] = "android"
@@ -79,6 +79,9 @@ def main():
7979
parser.add_argument('--goma', default=True, action='store_true')
8080
parser.add_argument('--no-goma', dest='goma', action='store_false')
8181

82+
parser.add_argument('--clang', default=True, action='store_true')
83+
parser.add_argument('--no-clang', dest='clang', action='store_false')
84+
8285
args = parser.parse_args()
8386

8487
command = ['gn', 'gen', '--check']

travis/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash
22
set -ex
33

4+
# Linux Debug
5+
./sky/tools/gn --debug --no-clang
6+
ninja -j 8 -C out/Debug
7+
48
./tools/android/download_android_tools.py
59

610
# Android Debug

travis/setup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ set -ex
55
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
66
export PATH="$(pwd)/depot_tools:${PATH}"
77

8+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
9+
sudo apt-get update -qq
10+
811
# Get dependencies.
9-
sudo apt-get install libdbus-1-dev libgconf2-dev bison gperf wdiff python-openssl libxtst-dev
12+
sudo apt-get install libdbus-1-dev libgconf2-dev bison gperf wdiff python-openssl libxtst-dev gcc-4.8 g++-4.8
1013
sudo easy_install pip
1114
sudo pip install requests
1215

0 commit comments

Comments
 (0)