Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running cross compiler from PATH #67

Open
marianodominguez opened this issue Mar 19, 2023 · 3 comments
Open

Running cross compiler from PATH #67

marianodominguez opened this issue Mar 19, 2023 · 3 comments

Comments

@marianodominguez
Copy link

it seems compiler can only be ran form install directory:

/home/mariano/8bit-samples/fastbasic
➜ fastbasic git:(master) ✗ fb pi.bas
Can't open target definition file './default.tgt'

is there a FB_HOME or other variable it can be used to point to that directory ?

@marianodominguez marianodominguez changed the title Running cross compiler form PATH Running cross compiler from PATH Mar 19, 2023
@dmsc
Copy link
Owner

dmsc commented Mar 20, 2023

Hi!

Yes, this is because getting the executable path in a multi-platform way is not trivial, so the compiler expects to be executed with a path that points to the location...

I solve this with a simple script in my ~/bin/ folder:

#!/bin/bash
exec "/home/daniel/src/fastBasic/fastbasic-git/build/compiler/$(basename $0)" "$@"

@marianodominguez
Copy link
Author

marianodominguez commented Mar 20, 2023 via email

@dmsc
Copy link
Owner

dmsc commented Mar 20, 2023

Yes, it is an option, but it is about the same difficulty for the user than using a script ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants