This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import sys | |
import os | |
import fcntl | |
import argparse | |
import json | |
# the default location for the compilation database is the file 'compile_commands.json' in the current directory | |
def_dbname = 'compile_commands.json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- config/SCRAM/GMake/Makefile.rules 2016-09-09 13:00:19.000000000 +0200 | |
+++ config/SCRAM/GMake/Makefile.rules 2016-10-31 19:31:37.061151791 +0100 | |
@@ -515,6 +515,7 @@ define run_compile_command | |
$(CMD_echo) ">> Compiling $(2) $< " &&\ | |
$(VERB_ECHO) $4 $5 $< -o $@ &&\ | |
($4 $5 $< -o $@ || ($(if $(strip $6),$4 $6 $< -o $(basename $@).d && $(CMD_sed) -i -e 's|.*:|$@:|' $(basename $@).d && exit 1,exit 1))) $3 $(endlog_$(1)) | |
+ @llvm-ccdb-add -p "$(CMSSW_BASE)/.SCRAM/$(SCRAM_ARCH)/compile_commands.json" "$<" "$4 $5 $< -o $@" | |
endef | |
define compile_cxx_common | |
$(call run_compile_command,$2,$4,$5,$(CXX) -c $(3) $(CXXOPTIMISEDFLAGS) $(CXXSHAREDOBJECTFLAGS),$(if $(6),,$(CXX_MMD) $(CXX_MF) $(basename $@).d),$(if $(6),,$(CXX_MM))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# to launch a container using this profile: | |
# lxc launch <container> -p default -p $USER | |
set -eu | |
#UID=$(id -u) | |
GID=$(id -g) | |
SUBUID=root:$UID:1 | |
SUBGID=root:$GID:1 |
NewerOlder