<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Modest Destiny (Posts about Bazel)</title><link>https://blog.modest-destiny.com/</link><description></description><atom:link href="https://blog.modest-destiny.com/categories/cat_bazel.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2021 Adam Basfop Cavendish </copyright><lastBuildDate>Mon, 22 Mar 2021 08:19:52 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Building Golang CGO with Bazel</title><link>https://blog.modest-destiny.com/posts/building-golang-cgo-with-bazel/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;Bazel is a fast building system open sourced by Google. It has go support but it does not have a detailed instruction on how to integrate CGO with the bazel build system. Building everything from scratch with &lt;code&gt;cc_library&lt;/code&gt; and manually written &lt;code&gt;go_library&lt;/code&gt; is do-able. However, we do prefer the amazing &lt;a href="https://github.com/bazelbuild/bazel-gazelle"&gt;gazelle&lt;/a&gt; and sometimes it is hard to use prebuilt libraries with CGO build without digging up in the source code in the &lt;code&gt;gazelle&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/building-golang-cgo-with-bazel/"&gt;Read more…&lt;/a&gt; (7 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Bazel</category><category>Linux</category><guid>https://blog.modest-destiny.com/posts/building-golang-cgo-with-bazel/</guid><pubDate>Sat, 20 Mar 2021 19:12:44 GMT</pubDate></item></channel></rss>