Compare commits

...

8 Commits

Author SHA1 Message Date
uazo
dda7cece8f Update release.yaml 2023-01-31 12:49:58 +05:00
uazo
d26cceccdf Update release.yaml 2023-01-31 12:32:57 +05:00
uazo
5c005551b8 Update generate.sh 2023-01-31 12:30:40 +05:00
uazo
4ca3d33584 Update generate.sh 2023-01-31 12:29:31 +05:00
uazo
775ca2f448 Update generate.sh 2023-01-31 12:26:05 +05:00
uazo
1dd51fda9b Fix Segmentation fault 2023-01-30 17:41:10 +01:00
uazo
45836ce3ae Use clang to build custom ninja 2023-01-30 17:40:03 +01:00
uazo
e7381936fe Update build_args.gni 2022-12-29 16:51:25 +03:00
5 changed files with 9 additions and 12 deletions

View File

@@ -117,6 +117,7 @@ jobs:
cp $WINOUT/vulkan-1.dll chrome-win/
cp -r $WINOUT/locales chrome-win/locales
#test chrome-win.zip && rm chrome-win.zip
zip -r chrome-win.zip chrome-win/
echo Uploading chrome-win.zip

View File

@@ -10,6 +10,7 @@ if(getenv("TARGET_CPU") != "") {
}
if (target_os == "android") {
target_os = "android" # fix traffic annotation auditor
enable_kythe_annotations = true
chrome_public_manifest_package = "org.bromite.bromite.dev"
@@ -33,6 +34,7 @@ if (target_os == "android") {
}
if (target_os == "win") {
target_os = "win" # fix traffic annotation auditor
target_cpu = "x64"
symbol_level = 0
use_large_pdbs = true

View File

@@ -59,7 +59,7 @@ cd $WORKSPACE/
git clone https://github.com/ninja-build/ninja.git -b v1.8.2
cd ninja
git apply $WORKSPACE/bromite-buildtools/ninja-one-target-for-compdb.patch
./configure.py --bootstrap
CXX=clang++ ./configure.py --bootstrap
echo -e ${RED} -------- download clang indexer ${NC}
cd $WORKSPACE/

View File

@@ -1,19 +1,13 @@
#!/bin/bash
if [[ -z "${DOCKER_SOCK}" ]]; then
echo "Please set DOCKER_SOCK env variable"
if [[ -z "${INDEX_VERSION}" ]]; then
echo "Please set INDEX_VERSION env variable"
exit 1
fi
if [[ -z "${DEV_CONTAINER}" ]]; then
echo "Please set DEV_CONTAINER env variable"
exit 1
fi
cp /storage/images/android/x64/$INDEX_VERSION/bromite.idx .
cp /storage/images/android/x64/$INDEX_VERSION/RELEASE .
sudo docker -H $DOCKER_SOCK cp $DEV_CONTAINER:/home/lg/working_dir/chromium/src/out/bromite/bromite.idx .
sudo docker -H $DOCKER_SOCK cp $DEV_CONTAINER:/home/lg/working_dir/bromite/build/RELEASE .
#INDEX_VERSION=$(cat RELEASE)
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-remote-index:$INDEX_VERSION \
--progress plain \
--no-cache \

View File

@@ -73,6 +73,7 @@ index ed004ac8f1fe1a5107db8b1f5c02c4ba957daef4..bbb79da561ddec497863230cd99ffbe9
+
int NinjaMain::ToolCompilationDatabase(const Options* options, int argc, char* argv[]) {
+ std::vector<Edge*>* edges_to_process = &(state_.edges_);
+ std::vector<Edge*> user_interested_edges;
+
+ if (options->user_given_target) {
+ string err;
@@ -83,7 +84,6 @@ index ed004ac8f1fe1a5107db8b1f5c02c4ba957daef4..bbb79da561ddec497863230cd99ffbe9
+ return 1;
+ }
+
+ std::vector<Edge*> user_interested_edges;
+ if (!GetAllDependentEdges(user_given_target, &user_interested_edges))
+ return 1;
+ edges_to_process = &user_interested_edges;