Changeset 9fb280c in mainline


Ignore:
Timestamp:
2019-07-19T15:57:15Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9fe2fd7
Parents:
a949f4a
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-19 15:56:35)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-19 15:57:15)
Message:

Make clang slightly less broken

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    ra949f4a r9fb280c  
    306306
    307307        common['CLANG'] = "%sclang" % prefix
     308        common['CLANGXX'] = "%sclang++" % prefix
    308309
    309310        if (not path is None):
    310311                common['CLANG'] = "%s/%s" % (path, common['CLANG'])
     312                common['CLANGXX'] = "%s/%s" % (path, common['CLANGXX'])
    311313
    312314        check_app([common['CLANG'], "--version"], "clang", details)
     
    625627                        check_common(common, "CLANG")
    626628                        common['CC'] = common['CLANG']
     629                        common['CXX'] = common['CLANGXX']
    627630                        cc_autogen = common['CC'] + " -no-integrated-as"
    628631
    629632                        if (config['INTEGRATED_AS'] == "yes"):
    630633                                common['CC'] += " -integrated-as"
     634                                common['CXX'] += " -integrated-as"
    631635
    632636                        if (config['INTEGRATED_AS'] == "no"):
    633637                                common['CC'] += " -no-integrated-as"
     638                                common['CXX'] += " -no-integrated-as"
    634639
    635640                # Find full path to libgcc
  • uspace/Makefile.common

    ra949f4a r9fb280c  
    189189        -Wextra \
    190190        -Wno-unused-parameter \
    191         -Wmissing-prototypes \
    192191        -Wwrite-strings \
    193192        -Werror-implicit-function-declaration \
    194         -Wsystem-headers \
    195193        -Wunknown-pragmas \
    196194        -Wa,--fatal-warnings
     195
     196ifneq ($(COMPILER),clang)
     197        DEFAULT_CFLAGS += -Wmissing-prototypes -Wsystem-headers
     198endif
    197199
    198200# XXX: -fno-builtin-strftime is for a seemingly spurious format warning.
     
    239241        -fno-common \
    240242        -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
     243
     244ifeq ($(COMPILER),clang)
     245        COMMON_CFLAGS += -ffreestanding -nostdlibinc -Wno-unused-command-line-argument
     246endif
    241247
    242248# TODO: Use a different name.
Note: See TracChangeset for help on using the changeset viewer.