You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to build my project using odin build . -o:speed -obfuscate-source-code-locations there are a lot of absolute source code paths from my project as well as from the Odin core libraries.
I expect builds with the -obfuscate-source-code-locations flag to obfuscate all absolute source code paths to the Odin root directory as well as to my own project's directory.
Current Behavior
-obfuscate-source-code-locations does not hide all source code locations from the binary output.
Steps to Reproduce
Save following source file:
package example
main :: proc() {
arr: [10]int = {}
slice := arr[:]
for i := 0; i < 10; i += 1 {
slice[i] = i
}
}
After some testing I found 2 things that escape the obfuscation:
Bounds checking where when I used -no-bounds-check a majority of the unobfuscated embeddings were gone.
Type casting a union using actual := u.(int) there is some file name generation as well. Interestingly when I did actual, ok :=u.(int) the embedded string disappears.
Context
When I try to build my project using
odin build . -o:speed -obfuscate-source-code-locations
there are a lot of absolute source code paths from my project as well as from the Odin core libraries.Expected Behavior
I expect builds with the
-obfuscate-source-code-locations
flag to obfuscate all absolute source code paths to the Odin root directory as well as to my own project's directory.Current Behavior
-obfuscate-source-code-locations
does not hide all source code locations from the binary output.Steps to Reproduce
odin build . -o:speed -obfuscate-source-code-locations
C:/odin/
) directory paths.Currently for the snippet above it included the following absolute paths:
The text was updated successfully, but these errors were encountered: