Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: amaranth-lang/amaranth
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3379f072a0d8
Choose a base ref
...
head repository: amaranth-lang/amaranth
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e91a5ad93435
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 5, 2021

  1. Verified

    This commit was signed with the committer’s verified signature.
    nickvergessen Joas Schilling
    Copy the full SHA
    e91a5ad View commit details
Showing with 6 additions and 7 deletions.
  1. +6 −7 nmigen/_toolchain/cxx.py
13 changes: 6 additions & 7 deletions nmigen/_toolchain/cxx.py
Original file line number Diff line number Diff line change
@@ -4,12 +4,6 @@
import os.path


with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
# this causes a DeprecationWarning on Python 3.6 (but not later)
from setuptools import distutils


__all__ = ["build_cxx"]


@@ -23,7 +17,12 @@ def build_cxx(*, cxx_sources, output_name, include_dirs, macros):
# the output directory directly.
os.chdir(build_dir.name)

cc_driver = distutils.ccompiler.new_compiler()
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
# This emits a DeprecationWarning on Python 3.6 and 3.10.
from setuptools import distutils
cc_driver = distutils.ccompiler.new_compiler()

cc_driver.output_dir = "."

cc = sysconfig.get_config_var("CC")