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

[cmake] addons: windows: only add sse2 flags for x86 #23214

Merged
merged 3 commits into from
May 11, 2023

Conversation

lrusak
Copy link
Contributor

@lrusak lrusak commented Apr 28, 2023

I noticed that the build log for win64 has a lot of lines like this:

20:18:35 [  2%] Building CXX object CMakeFiles/peripheral.joystick.dir/src/addon.cpp.obj
20:18:35 cl : Command line warning D9002 : ignoring unknown option '/arch:SSE2'

This should clear that up

ref: https://stackoverflow.com/questions/1067630/sse2-option-in-visual-c-x64

What is the effect on users?

less spam in the build log?

Signed-off-by: Lukas Rusak <lorusak@gmail.com>
@lrusak lrusak added Type: Cleanup non-breaking change which removes non-working or unmaintained functionality Platform: Windows Component: Build v21 Omega labels Apr 28, 2023
@lrusak lrusak added this to the Omega 21.0 Alpha 2 milestone Apr 28, 2023
@lrusak lrusak requested a review from fuzzard April 28, 2023 02:49
@thexai
Copy link
Member

thexai commented Apr 28, 2023

Fine but commit/PR title seems confusing:

You cannot "remove SSE2 support" from x64 because SSE2 instructions are supported on all x64 processors. Then maybe something like:

"Remove /SSE2 build flag from x64 as SSE2 support is already enabled by default"

or

"remove unnecessary /SSE2 build flag from x64"

@wsnipex
Copy link
Member

wsnipex commented Apr 29, 2023

@lrusak lrusak changed the title [cmake] windows: only add sse2 support for x86 [cmake] windows: only add sse2 flags for x86 Apr 29, 2023
@lrusak lrusak changed the title [cmake] windows: only add sse2 flags for x86 [cmake] addons: windows: only add sse2 flags for x86 Apr 29, 2023
@lrusak
Copy link
Contributor Author

lrusak commented Apr 29, 2023

So I think there is some misunderstanding here as this only effects the add-on build IIRC. These scripts only have some variables available.

message("TARGET_ARCHITECTURE: ${TARGET_ARCHITECTURE}")
message("cmakeArch: ${cmakeArch}")
message("Platform: $ENV{Platform}")
message("ARCH: ${ARCH}")
message("CMAKE_GENERATOR_PLATFORM: ${CMAKE_GENERATOR_PLATFORM}")

x64

14:46:08 TARGET_ARCHITECTURE: 
14:46:08 cmakeArch: 
14:46:08 Platform: x64
14:46:08 ARCH: 
14:46:08 CMAKE_GENERATOR_PLATFORM: 

x86

14:49:27 TARGET_ARCHITECTURE: 
14:49:27 cmakeArch: 
14:49:27 Platform: x86
14:49:27 ARCH: 
14:49:27 CMAKE_GENERATOR_PLATFORM: 

Copy link
Member

@thexai thexai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are correct and although variable value is x86 in commit name it would be more correct to talk about win32 because x86 is both 32 and 64 bits

@lrusak
Copy link
Contributor Author

lrusak commented Apr 30, 2023

The changes are correct and although variable value is x86 in commit name it would be more correct to talk about win32 because x86 is both 32 and 64 bits

well it seems that windows refers to x86 as 32bit and x64 as 64bit no?

Copy link
Member

@AlwinEsch AlwinEsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With more less warnings is always good, thanks about the fix!

@thexai thexai merged commit c5148e7 into xbmc:master May 11, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Build Platform: Windows Type: Cleanup non-breaking change which removes non-working or unmaintained functionality v21 Omega
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants