adamharrison / lite-xl-terminal

A terminal plugin for lite-xl.
MIT License
41 stars 6 forks source link

Add -O3 flag to remove remark on compile with `icx` (intel compiler) on Windows #51

Open fabriciorsf opened 4 months ago

fabriciorsf commented 4 months ago

Remark on compile with icx (CC=icx BIN=libterminal.dll ./build.sh -g) icx: remark: Note that use of '-g' without any optimization-level option will turn off most compiler optimizations similar to use of '-O0'; use '-Rno-debug-disables-optimization' to disable this remark [-Rdebug-disables-optimization]

Flags to realy optimize: CFLAGS="$CFLAGS -O3 -fPIC -Ilib/lite-xl/resources/include"

adamharrison commented 3 months ago

Sure; but this is because you're specifying -g without any optimization-levels. Because this is a user specified option; there's nothing we really need to change on our end, it's just something to note if you're using icx.