Hi, I'm trying to develop an app but have run into an issue that was very hard to debug due to the SDK printing discovered program very confusingly.
For example, I have arm-none-eabi-gcc in my $PATH and am getting the following log output:
> pebble build
Setting top to : /home/lilly/Projects/pebble2fox
Setting out to : /home/lilly/Projects/pebble2fox/build
Checking for program 'webpack' : /home/lilly/.pebble-sdk/SDKs/current/node_modules/.bin/webpack
Found Pebble SDK for emery in: : /home/lilly/.pebble-sdk/SDKs/current/sdk-core/pebble/emery
Checking for program 'gcc, cc' : arm-none-eabi-gcc
Notice how the arm-none-eabi-gcc is printed as-is without a full path. However when the SDK actually tries to execute arm-none-eabi-gcc it uses the path to the binary inside the SDK directory. Crucially, that binary is not the same as the one in my $PATH but because of the above output it looks like the SDK would use the gcc binary from $PATH.
Wanted Solution
For clarity the SDK should always print the full path of discovered programs.
As far as I can tell this happens in Configure.py:224 (def find_program(self,filename,**kw)) but I was not able to find the source of the SDK on GitHub to properly link it here.
Hi, I'm trying to develop an app but have run into an issue that was very hard to debug due to the SDK printing discovered program very confusingly.
For example, I have
arm-none-eabi-gccin my$PATHand am getting the following log output:Notice how the
arm-none-eabi-gccis printed as-is without a full path. However when the SDK actually tries to executearm-none-eabi-gccit uses the path to the binary inside the SDK directory. Crucially, that binary is not the same as the one in my$PATHbut because of the above output it looks like the SDK would use the gcc binary from$PATH.Wanted Solution
For clarity the SDK should always print the full path of discovered programs.
As far as I can tell this happens in
Configure.py:224(def find_program(self,filename,**kw)) but I was not able to find the source of the SDK on GitHub to properly link it here.