Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8194645

Build should work with VS 2013 express for 64bit builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 10, 11
    • infrastructure
    • None
    • windows

      Visual Studio 2013 express edition does not come with the native 64bit compilers which we assume in configure. Instead it comes with a 32bit cross compilation setup. The only real difference seems to be the location of files, most notably the vcvars*.bat. Nir Lisker on build-dev has demonstrated that by changing which vcvars*.bat we look for, he was able to successfully build using express edition: http://mail.openjdk.java.net/pipermail/build-dev/2018-January/020584.html

      ---
      This is what I did in toolchain_windows.m4:

          if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
             VCVARSFILE="vc/bin/vcvars32.bat"
          else
      # VCVARSFILE="vc/bin/amd64/vcvars64.bat"
             VCVARSFILE="vc/bin/x86_amd64/vcvarsx86_amd64.bat"
          fi
      ---

      We should update configure to at least accept this alternate path to vcvars*.bat.

            erikj Erik Joelsson
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: