digitalmars.D.learn - in dub single file build how to pass "-J<dir>" options?
- mw (15/15) Dec 21 2022 I have example.d:
- mw (9/23) Dec 21 2022 Found it, it's:
- rikki cattermole (1/1) Dec 21 2022 stringImportPaths
I have example.d: ``` /+dub.sdl: dependency "tkd" version="~>1.1.14" +/ ... ``` $ dub build --single example.d ... Error: need `-J` switch to import text file `folder_page.png` I'm wondering how to pass "-J<dir>" options? BTW, for such single file build, do I have to use dub? is there another way to just use dmd? Thanks.
Dec 21 2022
On Thursday, 22 December 2022 at 02:19:23 UTC, mw wrote:I have example.d: ``` /+dub.sdl: dependency "tkd" version="~>1.1.14" +/ ... ``` $ dub build --single example.d ... Error: need `-J` switch to import text file `folder_page.png` I'm wondering how to pass "-J<dir>" options?Found it, it's: ``` /+dub.sdl: dependency "tkd" version="~>1.1.14" dflags "-Jmedia" +/ ```BTW, for such single file build, do I have to use dub? is there another way to just use dmd?Still don't know how to directly invoke dmd to build.
Dec 21 2022