Hello,
I can't figure this out.
If I have a project structure like this:
MyProject/
|-Makefile
|-src/main.xc
I then set my cwd in MyProject/ and run xmake. With no errors, the project is builds fine.
However if my main.xc has en error. The error is refer to main.xc as "../src/main.xc:7:2: error: <some error>"
Clearly the "../src/main.xc" does not refer to the correct path from where I have my cwd.
I also noticed that whenever I have library dependencies, they will refer to error with absolute paths and is thus OK.
Is there some way I can force xmake to always output absolute paths?
I have looked and looked in the command line manual but can't find any option that resolves this.
xmake outputs wrong relative path to files with errors
Thanks, it seems that specifying the SOURCE_DIRS and INCLUDE_DIRS variables does help.
Unfortunately I then get other build issues.
Like this for every file:
And an error:
As a workaround I came up with this solution (using sed to substitute ../src to ./src):
..a bit ugly but works for now.
Unfortunately I then get other build issues.
Like this for every file:
Code: Select all
warning: ignoring old commands for target `.build_Release/import/lib_dsp/src/fft/dsp_fft_inverse.S.pca.xml.decouple
Code: Select all
xcc: error: multiple xn source files supplied (".././src/XU216-512-TQ128-C20.xn") and (".././src/XU216-512-TQ128-C20.xn")
Code: Select all
xmake 2>&1 | sed -E 's/\.\.\/src/\.\/src/g'