Category : bazel

I am trying to use code in Bazel, which uses the -include flag (https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html) to always include a config header. The config header sets a number of #defines that are required by the header files, ie enabling/disabling certain APIs. The config header looks something like this: #ifndef CONFIG_H_ #define CONFIG_H_ // part of library, defines ..

Read more

I’m currently migrating a multipackage C++14 project to Bazel, but whenever I run $ bazel build on linux I end up getting build errors because Bazel is calling the compiler with -std=c++0x. One of the requirements for this project is to gradually migrate its packages to C++17 once the build system is up and running. ..

Read more

I have some sample code on openssl which I found on the documentation. (https://wiki.openssl.org/index.php/EVP_Symmetric_Encryption_and_Decryption under C++ section) They suggested to compile with g++ -Wall -std=c++11 aes_binary.cxx -o aes_binary.exe -lcrypto I adapted this into bazel as: cc_binary( name = "aes_binary", srcs = ["aes_binary.cpp"], deps = ["//base"], linkopts = [ "-lcrypto" ] ) It works fine but ..

Read more