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

Consider to use target=host for PC #41

Closed
ckormanyos opened this issue Nov 27, 2019 · 4 comments
Closed

Consider to use target=host for PC #41

ckormanyos opened this issue Nov 27, 2019 · 4 comments
Assignees

Comments

@ckormanyos
Copy link
Owner

Consider to use target=host for PC. At the moment, the specialized target x86_64-w64-mingw32 is used. But this does not make sense on *nix hosts.

@ckormanyos ckormanyos self-assigned this Nov 27, 2019
@jwinarske
Copy link
Contributor

To build master branch via Visual Studio on Windows 10 x64

Win+R, cmd, enter

If VS variable is not set by default (default install), open Visual Studio Build Window

cd real-time-cpp
mkdir build
cd build
cmake ../ref_app -DTARGET=host
cmake --build . --config Debug --target ALL_BUILD

OR

Open Solution "ref_app.sln"
Right click ref_app project, and set to Default startup app
Click Debug

Following *nix pattern to build with x86_64-w64-mingw32 from MSYS or Cygwin should work too.

@ckormanyos
Copy link
Owner Author

I just switched to:

  • Use "host" when building in VC
  • Treat x86_64-w64-mingw32 as any other embedded target.
    I hope this change is consistent with resolving this issue?

@jwinarske
Copy link
Contributor

Ultimately host and x86_64-w64-mingw32 are the same. Renaming it host was just a way to make it more generic, and provide a target for Mac, Windows, and Linux.

@ckormanyos
Copy link
Owner Author

Understood. In the GNUmake/VC builds, the following has been done: Retain x86_64-w64-mingw32 and treat it like as one of the embedded targets. Use the new "host" for VC builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants