Skip to content

Instantly share code, notes, and snippets.

@jbd
Created March 16, 2017 16:14
Show Gist options
  • Select an option

  • Save jbd/8bd4676fdb73280ac2a07668476b32af to your computer and use it in GitHub Desktop.

Select an option

Save jbd/8bd4676fdb73280ac2a07668476b32af to your computer and use it in GitHub Desktop.
bazel compilation snippets
build:
cd $(SOFT) && $(PATCH) -p 0 -i $(INST)/CROSSTOOL.patch
cd $(SOFT) && $(MODULELOAD) gcc/4.9.0 java/1.8.0 && \
EXTRA_BAZEL_ARGS='-s --verbose_failures --ignore_unsupported_sandboxing --genrule_strategy=standalone --spawn_strategy=standalone -s --verbose_failures' \
LD_LIBRARY_PATH=/local/gensoft2/exe/gcc/4.9.0/lib64/ LDFLAGS="-Wl,-rpath=/local/gensoft2/exe/gcc/4.9.0/lib64/ ${LDFLAGS}" ./compile.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment