Changeset 9fb280c in mainline for uspace


Ignore:
Timestamp:
2019-07-19T15:57:15Z (6 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.