<div class="chatlog__message-group"> <div id="chatlog__message-container-447707938451226625" class="chatlog__message-container" data-message-id="447707938451226625"> <div class="chatlog__message"> <div class="chatlog__message-aside"><img class="chatlog__avatar" src="https://cdn.discordapp.com/avatars/127674083331538944/4893b43ea9ee2231b8ffb8b05c305ce3.png?size=512" alt="Avatar" loading="lazy"></div> <div class="chatlog__message-primary"> <div class="chatlog__header"><span class="chatlog__author" style="color:rgb(155,89,182)" title="norio_nomura" data-user-id="127674083331538944">norio_nomura</span> <a href="/channels/430242233468452865?category=main&channel=swiftbot-sandbox&message_id=447707938451226625"><span class="chatlog__timestamp" title="Sunday, May 20, 2018 10:31 AM"></span></a><a href="#chatlog__message-container-447707938451226625">5/20/2018 10:31 AM</a></div> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve">Cのソースを含むパッケージをビルドしておいてインポートする場合、SwiftPM(llbuild)がモジュールをビルドする際に<code class="chatlog__markdown-pre chatlog__markdown-pre--inline">swiftc</code>へ渡すオプションを<code class="chatlog__markdown-pre chatlog__markdown-pre--inline">.build/debug.yaml</code>から取り出して、それを渡すと良い。 <a href="https://github.com/norio-nomura/SwiftCompilerDiscordappBot/blob/8962b0dec3723876b2ac8a105653fce8567025eb/Sources/SwiftCompilerDiscordappBot/App.swift#L201-L207">https://github.com/norio-nomura/SwiftCompilerDiscordappBot/blob/8962b0dec3723876b2ac8a105653fce8567025eb/Sources/SwiftCompilerDiscordappBot/App.swift#L201-L207</a></span> <span class="chatlog__edited-timestamp" title="Sunday, May 20, 2018 10:31 AM">(edited)</span></div> <div class="chatlog__embed"> <div class="chatlog__embed-color-pill" style="background-color:rgba(30,35,39,255)"></div> <div class="chatlog__embed-content-container"> <div class="chatlog__embed-content"> <div class="chatlog__embed-text"> <div class="chatlog__embed-title"><a class="chatlog__embed-title-link" href="https://github.com/norio-nomura/SwiftCompilerDiscordappBot/blob/8962b0dec3723876b2ac8a105653fce8567025eb/Sources/SwiftCompilerDiscordappBot/App.swift"> <div class="chatlog__markdown chatlog__markdown-preserve">norio-nomura/SwiftCompilerDiscordappBot</div> </a></div> <div class="chatlog__embed-description"> <div class="chatlog__markdown chatlog__markdown-preserve">SwiftCompilerDiscordappBot - Swift Compiler Discordapp Bot</div> </div> </div> <div class="chatlog__embed-thumbnail-container"><a class="chatlog__embed-thumbnail-link" href="https://images-ext-1.discordapp.net/external/XQYUIbgYPmWZnV6-OwYWKifrMrwjfZjZ1oK-3D5slmI/%3Fs%3D400%26v%3D4/https/avatars3.githubusercontent.com/u/33430"> <img class="chatlog__embed-thumbnail" src="https://images-ext-1.discordapp.net/external/XQYUIbgYPmWZnV6-OwYWKifrMrwjfZjZ1oK-3D5slmI/%3Fs%3D400%26v%3D4/https/avatars3.githubusercontent.com/u/33430" alt="Thumbnail" loading="lazy"> </a></div> </div> </div> </div> </div> </div> </div> </div>