Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qb64 and ramdisk compilation
#4
I think it's a very good suggestion and something I'd like to see fixed for the Linux version - We should probably replace `./internal/temp` with respecting the TMPDIR environment variable and fallback to `/tmp` itself, potentially with a command line option to manually specify the location. Unfortunately I think there are a decent number of barriers to this though:

1. The ./internal/temp location is in more than a few different locations in the source, so those would need to be rounded up and addressed.
2. Some files outside of `./internal/temp` are modified during compilation, in particular qbx.cpp. qbx.cpp also has direct statements that include files from `./internal/temp`, so really a full solution for dealing with this file is needed. There might also be one or two other stray files modified during compilation that also need addressed.
3. Many object files for libqb are compiled outside of `./internal/temp`. These don't change as much as the stuff in `./internal/temp`, but they might be annoying. If we offer a 'proper' Linux install those files could potentially be shipped precompiled so we can probably ignore them for the moment.

I would definitely encourage you to submit an issue to the Github here, that would be the best way to ensure this idea doesn't get lost.

Also, as a workaround you might be able to turn the `./internal/temp` directory into a symlink to a location on your ramdisk. Not an ideal solution, but I think it would get you most of the way there without needing to wait for changes to QB64.
Reply


Messages In This Thread
qb64 and ramdisk compilation - by Coolman - 04-30-2022, 09:53 AM
RE: qb64 and ramdisk compilation - by Coolman - 05-01-2022, 09:19 AM
RE: qb64 and ramdisk compilation - by SMcNeill - 05-01-2022, 11:47 PM
RE: qb64 and ramdisk compilation - by DSMan195276 - 05-02-2022, 12:23 AM
RE: qb64 and ramdisk compilation - by Coolman - 05-02-2022, 09:15 AM



Users browsing this thread: 1 Guest(s)